Clipping Images with ARC/INFO

This tutorial shows you how to clip an Imagine image with an ARC/INFO boundary inside of ARC. The advantage of using ARC is that it is infinately easier, and doesn't leave any useless blank lines in the clipped image.

  1. Start ARC

  2. Use IMAGEGRID < in_image > < out_grid > {out_colormap_file} {in_band} {NEAREST | BILINEAR | CUBIC} {DEFAULT | SQUARE}

    Don't specify any bands if you want all of them. The command will produce an ouput of several grids.

    Example: imagegrid ingrid outgrid
    This will produce outgridc1 outgridc2 outgridc3... in your directory.

  3. Use LATTICECLIP < in_lattice > < clip_cover > < out_lattice > {MINIMUM | EXTENT} {z_factor}

    You must use this command for each outgrid1-n.

    Example: latticeclip outgridc1 clipbnd outlattc1
    latticeclip outgridc2 clipbnd outlattc2 ...
    This will produce outlattc1 outlattc2 outlattc3 ... in your directory.

  4. Outside of ARC, create a text file called outlatt.stk in your directory, and on each line type the name of each outlattc*. The file should look like this:
    
    	outlattc1
    	outlattc2
    	outlattc3
    	outlattc4
    	outlattc5
    	outlattc6
    	outlattc7
    	

  5. Inside ARC use GRIDIMAGE < in_grid | in_stack > {NONE | NOMINAL | GRAY | in_colormap_file} < out_image > {BIL | BIP | BSQ | ERDAS | GRASS | IMAGINE | RLC | SUNRASTER | TIFF} {NONE | COMPRESSION | G4 | LZW}

    This command will convert your grids back into an Imagine file.

    Example: gridimage outlatt.stk none outimg.img imagine
    This will create an imagine file called outimg.img.