Subsets

This topic contains the following sections:

For information on applying a mask to an image, see Masks.

Spatial Subset

Spatial subsetting specifies a geographic area of the image to use for processing. Use any of the following to define spatial subsets:

You can also write a script to define a spatial subset using the ENVISubsetRaster function, or the GeographicSubsetRaster or SubsetRaster tasks.

When you select a file to open in the Data Selection dialog, the full extent of the image will be selected by default (no subsetting is applied). If you previously applied a subset to the selected image in the current ENVI session, you can reuse that subset for additional processing. Click the drop-down arrow next to the Spatial Subset button and select the previously-used subset from the list. Selecting Reset clears the subset and returns to the full extent.

To specify a spatial subset using other methods, click the Spatial Subset button. The Data Selection dialog expands to show the Spatial Subset panel.The full extent of the image appears in the Spatial Subset panel and an Overview appears when you hover the cursor in the top-left corner of image. The Overview Locator, a rectangle within the Overview, defines the extent to show in the image; click and drag the rectangle to move to a different location. Any rotation or stretch you apply to the image is reflected in the Overview. You can toggle the Overview on or off with the Hide/Show Overview button .

To see more detail in an area you want to subset, use the zoom and stretch buttons located above the image.

Zoom options:

Stretch options:

If the image colors make visualization difficult, use the stretch applied in the View, or select an option from the Stretch drop-down list in the Spatial Subset panel. The stretch options are described below.

You can define a subset using any of the following:

Click OK to accept the subset and close the Spatial Subset panel.

Spectral Subset

Spectral subsetting specifies a set of bands to use for image processing.

You can also write a script to define a spectral subset using the ENVISubsetRaster function.

Tip: Applying a spectral subset before running spectral processing and analysis tools can significantly change the processing results since the pixel spectral information changes after subsetting (for example, FLAASH or QUAC atmospheric correction or ACE target detection). If the raster has a bad bands list defined, you should exclude those bad bands in subsequent processing and analysis.

When you select a file to open in the Data Selection dialog, all bands are selected by default (no subsetting is applied). To use a spectral subset of the image for processing, click the Spectral Subset button.

If you previously applied a subset to an image in the current ENVI session and you want to apply the same subset for additional processing, click the drop-down arrow next to the Spectral Subset button and select the previous subset from the list. Selecting Reset clears the subset and returns to the full extent.

In the Spectral Subset dialog, specify the bands to use in the following ways:

Click OK to accept the band selection(s) and return to the Data Selection dialog.