AgriculturalStressClassification Task

This task performs raster classification based on Agricultural Stress Estimate. The result is a map showing the distribution of crop stress.

For additional details on agricultural stress analysis, see Agricultural Stress Tool.

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('AgriculturalStressClassification')

 

; Define inputs

Task.INDEX_1 = 'Normalized Difference Vegetation Index'

Task.INDEX_2 = 'Water Band Index'

Task.INDEX_3 = 'Red Green Ratio 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('AgriculturalStressClassification')

Input properties (Set, Get): INDEX_1, INDEX_2, INDEX_3, INPUT_RASTER, MINIMUM_NDVI, 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:

INDEX_1 (required)

Specify a vegetation index from the Broadband or Narrowband Greenness Index category. The choices are:

Broadband Greenness:

Narrowband Greenness:

INDEX_2 (required)

Specify a vegetation index from the Canopy Water or Canopy Nitrogen Index category. The choices are:

Canopy Water:

Canopy Nitrogen:

INDEX_3 (required)

Specify a vegetation index from the Light Use Efficiency or Leaf Pigments Index category. The choices are:

Light Use Efficiency:

Leaf Pigments:

INPUT_RASTER (required)

Specify a raster on which to perform Agricultural Stress Estimate classification.

MINIMUM_NDVI (optional)

Specify the value for minimum valid greenness.

The default value is 0.00000.

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, FireFuelClassification Task, ForestHealthClassification Task, VegetationDelineation Task