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 Classification.

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

INDEX_1 (required)

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

Broadband Greenness:

Narrowband Greenness:

INDEX_2 (required)

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

Canopy Water:

Canopy Nitrogen:

INDEX_3 (required)

Specify a vegetation index from the Light Use EfficiencyorLeaf 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_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, FireFuelClassification Task, ForestHealthClassification Task, VegetationDelineation Task