ExtractBandsFromRaster Task
This task extracts individual bands from an ENVI raster.
Example
This example opens a raster from sample data included with your installation of ENVI and then extracts all the individual bands, returning them each as ENVI rasters.
; Start the application
e = ENVI()
File = Filepath('qb_boulder_msi', SUBDIRECTORY=['data'], $
ROOT_DIR = e.Root_Dir)
; Create a raster series object
Raster = e.OpenRaster(File)
; Get the task from the catalog of ENVITasks
Task = ENVITask('ExtractBandsFromRaster')
; Define inputs
Task.INPUT_RASTER = Raster
; Run the task
Task.Execute
; Get the bands of the input raster
RasterBands = Task.OUTPUT_RASTERS
Syntax
Result = ENVITask('ExtractBandsFromRaster')
Input properties (Set, Get): INPUT_RASTER
Output properties (Get only): OUTPUT_RASTERS
Properties marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Properties marked as "Get" are those whose values you can retrieve but not set.
Methods
This task inherits the following methods from ENVITask:
Properties
This task inherits the following properties from ENVITask:
This task also contains the following properties:
INPUT_RASTER (required)
Specify an ENVIRaster from which to extract the individual bands.
OUTPUT_RASTERS
This is an array of ENVI rasters.
Version History
ENVI 5.4.2 |
Introduced |
API Version
4.2