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.
e = ENVI()
File = Filepath('qb_boulder_msi', SUBDIRECTORY=['data'], $
ROOT_DIR = e.Root_Dir)
Raster = e.OpenRaster(File)
Task = ENVITask('ExtractBandsFromRaster')
Task.INPUT_RASTER = Raster
Task.Execute
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:
AddParameter
Execute
Parameter
ParameterNames
RemoveParameter
Properties
This task inherits the following properties from ENVITask:
COMMUTE_ON_DOWNSAMPLE
COMMUTE_ON_SUBSET
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
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
API Version
4.3
See Also
ENVITask