VegetationDelineation Task

This task performs raster classification based on Vegetation Delineation.

Example

; Start the application

e = ENVI()

 

; Open an input file

File = Filepath('AVIRISReflectanceSubset.dat', Subdir=['data', 'hyperspectral'], $

  Root_Dir=e.Root_Dir)

Raster = e.OpenRaster(File)

 

; Get the task from the catalog of ENVITasks

Task = ENVITask('VegetationDelineation')

 

; Define inputs

Task.INDEX = 'Normalized Difference Vegetation Index'

Task.INPUT_RASTER = Raster

; Run the task

Task.Execute

 

; Add the output to the Data Manager

DataColl.Add, Task.OUTPUT_RASTER

 

; Display the result

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.

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

ENVI 5.6.3

Introduced

See Also

ENVITask, AgriculturalStressClassification Task, FireFuelClassification Task, ForestHealthClassification Task, VegetationSuppression Task