This task performs raster classification based on Vegetation Delineation.
Example
e = ENVI()
File = Filepath('AVIRISReflectanceSubset.dat', Subdir=['data', 'hyperspectral'], $
Root_Dir=e.Root_Dir)
Raster = e.OpenRaster(File)
Task = ENVITask('VegetationDelineation')
Task.INDEX = 'Normalized Difference Vegetation Index'
Task.INPUT_RASTER = Raster
Task.Execute
DataColl.Add, Task.OUTPUT_RASTER
View = e.GetView()
Layer = View.CreateLayer(Task.OUTPUT_RASTER)
Syntax
Result = ENVITask('VegetationDelineation')
Input parameters (Set, Get): CLASS_COLORS, CLASS_NAMES, CLASS_RANGES, INDEX, INPUT_RASTER, OUTPUT_RASTER_URI
Output parameters (Get only): OUTPUT_RASTER
Parameters marked as "Set" are those that you can set to specific values. You can also retrieve their current values any time. Parameters marked as "Get" are those whose values you can retrieve but not set.
Input Parameters
CLASS_COLORS (optional)
Specify a (3,n) byte array with the RGB colors for the given ranges, where n is the number of classes. Use this parameter in conjunction with CLASS_RANGES.
The default value is [[160,82,45], [255,255,0], [0,238,0], [0,139,0]].
CLASS_NAMES (optional)
Specify an array with the names for the given ranges. The default value is ["No Veg", "Sparse Veg", "Moderate Veg", "Dense Veg"].
CLASS_RANGES (optional)
Specify a (2,n) array of color slice ranges, where n is the number of classes. In each array element, specify the minimum and maximum data value for the class.
The default value is [[-1, 0.25], [0.25, 0.5], [0.5, 0.7], [0.7, 1]].
INDEX (optional)
Specify a string representing the predefined spectral index to apply to the input raster. The default value is Normalized Difference Vegetation Index.
INPUT_RASTER (required)
Specify a raster from which to generate a spectral index raster.
OUTPUT_RASTER_URI (optional)
Specify a string with the fully qualified filename and path of the associated OUTPUT_RASTER.
- If you do not specify this parameter, or set it to an exclamation symbol (!), ENVI creates a temporary file.
- If you set it to the hash symbol (#), ENVI creates a file in the temporary directory, but this file will not be deleted when ENVI closes.
Output Parameters
OUTPUT_RASTER
This is a reference to the output raster of filetype ENVI.
Methods
Execute
Parameter
ParameterNames
Properties
DESCRIPTION
DISPLAY_NAME
NAME
REVISION
TAGS
Version History
See Also
ENVITask, AgriculturalStressClassification Task, FireFuelClassification Task, ForestHealthClassification Task, VegetationSuppression Task