English

How To: Minimize the extents of a grid.

Summary

This script will reset the extents of a grid to fit just the 'data' areas. NODATA cells will be minimized outside the data area.

Procedure

  1. Copy the following script to an ASCII text editor. Save the file in your local workspace as CROP.AML.

    CROP.AML:
    <a href='http://support.esri.com/en/knowledgebase/techarticles/detail/15552' target='_blank'>[O] CROP.AML</a>

  2. The CROP.AML requires an input grid and an output grid. Run it in GRID like this:

    Code:
    Grid: &RUN CROP.AML mygrid newgrid