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 properties (Set, Get): CLASS_COLORS, CLASS_NAMES, CLASS_RANGES, INDEX, INPUT_RASTER, OUTPUT_RASTER_URI

Output properties (Get only): OUTPUT_RASTER

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:

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 property 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 pre-defined 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

This is a reference to the output raster of filetype ENVI.

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 property, or set it to an exclamation symbol (!), a temporary file will be created.

Version History

ENVI 5.6.3

Introduced

API Version

4.2

See Also

ENVITask, AgriculturalStressClassification Task, FireFuelClassification Task, ForestHealthClassification Task