How To: Clip a full color (RGB) or multiband image
You need to clip each band by first converting the image to a grid, clipping the individual grids, and the converting them back to an image.
The example below uses an RGB (red-gree-blue) image. For images with more than three bands, such as Landsat TM 7-band images, you can use the same method for all the bands.
- Convert image to a grid:
Arc: IMAGEGRID img.tif img
In this example, the img.tif file is converted to the img grid stack, which contains three grids: imgc1, imgc2, and imgc3.
- Clip the individual grids:
Grid: GRIDCLIP imgc1 imgclipc1 COVER clipcov
Grid: GRIDCLIP imgc2 imgclipc2 COVER clipcov
Grid: GRIDCLIP imgc3 imgclipc3 COVER clipcov
You can use any clipping procedure here, such as Arc GRIDCLIP, GRID SETMASK, or GRID CON expressions.
- Create a new stack of the cliped grids:
Grid: MAKESTACK imgclip LIST imgclipc1 imgclipc2 imgclipc3
- Convert the new stack to an image:
Arc: GRIDIMAGE imgclip # imgclip.tif tiff