>  Docs Center  >  Using ENVI  >  Raster Layers

ENVI

Raster Layers

Raster Layers

Raster layers generally refer to images, including multispectral, panchromatic, digital elevation models (DEMs), Esri® layers (including those that reference Image services), and masks. For information about classification images, see Class Layers.

See the following sections:

Manage Raster Layers


The Layer Manager lists all displayed files in a tree view. Raster layers that are open but are not displayed in an Image window view are listed only in the Data Manager.

Each time you open a new data file, the layer appears at the top of the Layer Manager and becomes the selected layer. The purpose of a selected layer is to allow you to apply a display enhancement (brightness, contrast, transparency, etc.) to that layer only, without affecting other layers.

Here are some general tips for working with raster layers:

  • To select a layer, click its name in the Layer Manager.
  • To hide a layer in a view, disable the check box for that layer in the Layer Manager. To show the layer, enable the check box.
  • To hide all layers in a view, right-click on the View icon in the Layer Manager and select Hide All Layers. To show all layers, right-click and select Show All Layers.
  • If a raster has bad bands defined in the header file, those bands are marked with a warning symbol in the Layer Manager.
  • If you created multiple views in the Image window, the layers for each view are grouped under View entries.
  • To create a new RGB layer consisting of three bands from different files, follow these steps. The images must be coregistered and have the same x and y dimensions. Bands from a palette-based image are not supported.
    1. Open the image files in ENVI.
    2. Start the Data Manager.
    3. Expand the Band Selection category.
    4. With the red band selected in the Band Selection category, click on a band name from any file to assign that band to red.
    5. Repeat for the green and blue bands.
    6. Click Load Data in the Data Manager.

    The resulting RGB image is only added to the Layer Manager for display, not to the Data Manager. To create an RGB layer that you can export to a file, use the Layer Stacking tool or the ENVIMetaspectralRaster routine in the API.

  • If you have multiple views displayed, you can drag-and-drop raster layers from the Layer Manager to any one of those views in the display or to the corresponding view icons in the Layer Manager. This creates a copy of the layer(s) to populate the views.
  • Drag-and-drop individual ROI layers or ROI containers from one raster to another, to load the selected ROIs in the new raster layer.
  • To add a raster layer to a new view, right-click on a filename in the Data Manager and select Open Selected Dataset in New View.

Manage Individual Layers

For additional options with individual layers, right-click on a raster in the Layer Manager and select an option:

  • Rename Item: Enter the new name in the Rename Item dialog and press the Enter key to accept it or press the Esc key to cancel. (Linux and Macintosh users should click the green check icon to accept the new name or click the red X icon to cancel.)
  • Export Layer to TIFFSave the full raster layer extent, with image enhancements, at full resolution to a TIFF file.
  • Display in Portal: Display the raster layer in a portal.
  • Change RGB Bands: Change the RGB combination displayed for a multispectral raster. To assign a RGB combination, click the band name to assign to red in the Change Bands dialog, then repeat to make the green and blue selections. Click OK.
  • Order: Change the order in which a layer is displayed relative to other layers. Choose one of the following options:
    • Bring to Front
    • Bring Forward
    • Send Backward
    • Send to Back

    Or, select a layer and drag it to the desired order in the Layer Manager.

  • Remove: Remove the layer from the Layer Manager. The file remains open and you can access it and redisplay it from the Data Manager.

  • New Region of Interest: Create a new ROI layer for the selected raster.
  • New Raster Color Slice: Create a new color slice layer for the selected raster.
  • New Contour Layer: Create a new contour line layer for the selected raster.
  • Band AnimationAnimate through the bands of a raster.
  • Change Color Table: Change the color table for a grayscale raster. This menu option is not available for single-band layers that contain predefined color palettes, such as ENVI classification images. Choose one of the following predefined color tables:
    • Greyscale
    • Blue/White
    • Red Temperature
    • Blue/Green/Red/Yellow
    • Rainbow

    Or, select More to use the ENVI Color Table dialog to create your own color table.

  • Profiles: Create plots of spectral, horizontal, vertical, arbitrary, and series profiles.
  • View Metadata: Open the Metadata Viewer for a raster layer.
  • Quick StatsCompute basic statistics and histograms for all bands.
  • Zoom to Layer Extent: Center and display the entire layer within a view.
  • Zoom to Layer Full Resolution: Zoom to 1:1 (100%) scale.

    Note: Selecting Full Extent from the Zoom drop-down menu or clicking the Zoom to Full Extent button in the main toolbar zooms to the combined extents of all layers for the current view. Also, if a raster layer is georeferenced, the Zoom To drop-down list in the main toolbar displays options for Use Map Scale and Use Pixel Scale. For pixel-based raster layers (with no georeferencing), the Zoom To drop-down list only displays options for Use Pixel Scale.

  • If you open an OGC WMS raster layer that contains a legend, the legend displays in the Layer Manager. To create an annotation object from the legend that you can overlay on the image, right-click the layer name and select Load Layer as Annotation. This is useful, for example, in creating a Powerpoint presentation from the view.
  • If an Esri® raster layer is open in both ArcMap™ and ENVI and you change that layer in ArcMap (for example, update a symbol color), you can refresh the layer in ENVI to see the changes. To refresh in ENVI, the layer must first be saved in ArcMap. Refresh with one of the following:

  • In the Layer Manager, right-click the Esri layer and select Refresh.
  • In the Data Manager, right-click the Esri layer and select Refresh.

    The layer closes and reopens. Refreshing the layer moves it to the top of the order in the Layer Manager. If you have multiple views of the Esri layer open in the Image window, the layer will close in all views that contain that it and reopen in the active view.

  • Load Current Raster: Load the current raster in a series as a separate layer. This option is only available for raster series data.

Change a Color Table


You can apply a color table to a grayscale image when you right-click the layer in the Layer Manager and select Change Color Table. You can choose from several pre-define color tables, or click More to open the Change Color Table dialog. In the dialog you can pick from more pre-defined IDL color tables, and you can work in RGB (red-green-blue), HLS (hue-lightness-saturation), HSV (hue-saturation-value), or CMY (cyan, magenta, yellow) color spaces to define your own color table.

  • When you open the dialog, the Selected Color Table color bar shows the current color table for the image. When you modify the color table, the color bar updates to show the changes and the colors are applied to the image for preview. To accept the new color table and close the dialog, click OK.
  • Click Reverse to reverse the order of the color gradient.
  • To define your own color table, select RGB, HLS, HSV, or CMY from the drop-down.
  • Enable the check box next to the slider bar of the color space element you want to change. The two remaining sliders represent horizontal and vertical axes of the currently displayed color space and remain constant; only the slider with the enabled check box can change the current color space.
  • Move the slider bars for an element to adjust the values of the color space.
  • In the color space window, click and drag the end points of the interpolation line to change the current color table. The color table will contain the colors that fall beneath this line.



© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us