English

How To: Clip a multiband image using ArcGIS and Spatial Analyst

Summary

Instructions provided explain the procedure to clip or sub-set a multiband image. The Spatial Analyst extension is required.

Procedure

To use this procedure a masking dataset that covers the area to be clipped is required. The dataset may be a raster or a polygon feature class and should be in the same coordinate system as the raster being clipped.

  1. Add the individual bands of raster to ArcMap. Do not add the raster as a multiband. Each band should be its own separate layer in ArcMap's Table of Contents.
  2. Add the masking dataset to ArcMap.
  3. Navigate to Spatial Analyst > Options.
  4. On the General tab set the Working Directory.

    Note:
    The path to the Working Directory may not have any spaces. For example, a folder called 'My Documents' may cause an error, but 'My_Documents' does not.

  5. On the General tab set the Analysis Mask to the masking dataset.
  6. On the Extent tab set the extent to the masking dataset.
  7. On the Cell Size tab set the cell size to the clipping raster.
  8. Click OK.
  9. Open Spatial Analyst > Raster Calculator.
  10. Double-click on the first band in the Layers list. This will put the band into the expression box below.
  11. Click Evaluate. A new calculation layer will be added to ArcMap's Table of Contents.
  12. Repeat Steps 10 and 11 until all bands of the raster have been clipped.
  13. Right-click on each new calculation layer and save it to a raster dataset with Make Permanent.
  14. Open Spatial Analyst > Raster Calculator.
  15. Use the MAKESTACK function to make an ESRI Grid Stack from the calculation layers.

    Code:
    MAKESTACK <outstack> LIST <band1> <band2> <band3>

    Where <outstack> is a name for the output stack and <band1>, <band2>, <band3> are the calculation layers.
  16. Optionally, the output stack may be converted to a TIFF, IMG or ArcSDE Raster in ArcCatalog.

Related Information