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:
Properties
This task inherits the following properties from ENVITask:
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:
-
Difference Vegetation Index
-
Enhanced Vegetation Index
-
Global Environmental Monitoring Index
-
Green Atmospherically Resistant Index
-
Green Chlorophyll Index
-
Green Difference Vegetation Index
-
Green Leaf Index
-
Green Normalized Difference Vegetation Index
-
Green Optimized Soil Adjusted Vegetation Index
-
Green Ratio Vegetation Index
-
Green Soil Adjusted Vegetation Index
-
Green Vegetation Index
-
Infrared Percentage Vegetation Index
-
Leaf Area Index
-
Modified Non-Linear Index
-
Modified Simple Ratio
-
Modified Soil Adjusted Vegetation Index 2
-
Non-Linear Index
-
Normalized Difference Vegetation Index
-
Optimized Soil Adjusted Vegetation Index
-
Renormalized Difference Vegetation Index
-
Soil Adjusted Vegetation Index
-
Simple Ratio
-
Sum Green Index", "Transformed Difference Vegetation Index
-
Triangular Greenness Index
-
Visible Atmospherically Resistant Index
-
Wide Dynamic Range Vegetation Index
-
WorldView Improved Vegetation Index
-
Atmospherically Resistant Vegetation Index
-
Modified Chlorophyll Absorption Ratio Index
-
Modified Chlorophyll Absorption Ratio Index - Improved
-
Modified Red Edge Normalized Difference Vegetation Index
-
Modified Red Edge Simple Ratio
-
Modified Triangular Vegetation Index
-
Modified Triangular Vegetation Index - Improved
-
Red Edge Normalized Difference Vegetation Index
-
Red Edge Position Index
-
Transformed Chlorophyll Absorption Reflectance Index
-
Triangular Vegetation Index
-
Vogelmann Red Edge Index 1
-
Vogelmann Red Edge Index 2
Narrowband Greenness:
Atmospherically Resistant Vegetation Index
Modified Chlorophyll Absorption Ratio Index
Modified Chlorophyll Absorption Ratio Index - Improved
Modified Red Edge Normalized Difference Vegetation Index
Modified Red Edge Simple Ratio
Modified Triangular Vegetation Index
Modified Triangular Vegetation Index - Improved
Red Edge Normalized Difference Vegetation Index
Red Edge Position Index
-
Transformed Chlorophyll Absorption Reflectance Index
Triangular Vegetation Index
Vogelmann Red Edge Index 1
Vogelmann Red Edge Index 2
INDEX_2 (required)
Specify a vegetation index from the Canopy Water or Canopy Nitrogen Index category. The choices are:
Canopy Water:
Moisture Stress Index
Normalized Difference Infrared Index
Normalized Difference Water Index
Normalized Multi-band Drought Index
Water Band Index
Canopy Nitrogen:
Normalized Difference Nitrogen Index
INDEX_3 (required)
Specify a vegetation index from the Light Use Efficiency or Leaf Pigments Index category. The choices are:
Light Use Efficiency:
Photochemical Reflectance Index
Structure Insensitive Pigment Index
Red Green Ratio Index
Leaf Pigments:
Anthocyanin Reflectance Index 1
Anthocyanin Reflectance Index 2
Carotenoid Reflectance Index 1
Carotenoid Reflectance Index 2
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