Task Template for ENVI 5.3
This topic describes the fields (also called keys) in a task template for use with ENVI 5.3.
Task Keys
The following table describes the keys that provide an overview of the task. The "Mapping to ENVITask Routine" field lists the keys' corresponding ENVITask properties.
Key |
Required |
Description |
Mapping to ENVITask Routine |
---|---|---|---|
|
Yes |
A string with the name of the task, excluding the prefix |
NAME |
|
Yes |
A string with the name of the class to use; the most common is ENVITaskFromProcedure. Use ENVIMetatask if you are creating a metatask. See Metatasks for details. Use ENVIAbortableTaskFromProcedure to allow your custom task to have a progress dialog with an option to cancel the process. See Messaging for details. You can also write your own base class to simplify the process of writing custom tasks that use a common set of parameters and application behavior. See Custom Base Classes for more information. |
|
|
No |
The routine that is called when |
|
|
No |
A string with the name of the task as it appears to the end user. Spaces and special characters are allowed. This key is used by tasks that display a dynamic user interface for entering parameters. See ENVIUI::SelectTaskParameters for details. |
|
|
Yes |
A string with a description of the task. |
DESCRIPTION |
|
No |
A string that indicates if raster processing is affected by downsampling before program execution. A value of This key is used by the dynamic task UI to determine Preview accuracy. |
COMMUTE_ON_DOWNSAMPLE |
|
No |
A string that indicates if raster processing is affected by subsetting before program execution. For example, your algorithm may rely on statistics of the entire dataset to get accurate results. A value of This key is used by the dynamic task UI to determine Preview accuracy. |
COMMUTE_ON_SUBSET |
|
No |
A string listing the earliest version of ENVI that the task will work with. |
|
|
No |
A container of key/value pairs, described in the Parameter Keys section next. |
|
Parameter Keys
The following table describes the keys that belong to the parameters
group in a task template; these are repeated for each parameter. The "Mapping to ENVITaskParameter" field lists the keys' corresponding property names in ENVITaskParameter.
Key |
Required |
Description |
Mapping to ENVITaskParameter |
---|---|---|---|
|
Yes |
The name of the parameter as it appears to the end user. |
NAME |
|
No |
The internal keyword that the parameter should map to. If it is the same as the NAME key, then you do not need to set |
|
|
No |
The name of the task as it appears to the end user. This key is used by tasks that display a dynamic user interface for entering parameters. See ENVIUI::SelectTaskParameters for details. |
DISPLAY_NAME |
|
Yes |
A scalar string with one of the following:
If the parameter requires more than one scalar, the string contains additional information on array dimensions.
|
TYPE |
|
Yes |
Specify if the parameter is |
DIRECTION |
|
No |
Specify if the parameter is |
REQUIRED |
|
Yes |
A description of the parameter. |
DESCRIPTION |
|
No |
A string array that lists the possible values for the property. Any IDL data type is supported. You can also map from user-friendly strings to an internal lookup table of values if desired. |
CHOICE_LIST |
|
No |
The default value of the parameter if the end user does not provide a value. If you set this key, you should also set |
DEFAULT |
|
No |
A value that is greater than or equal to the minimum value allowed for the parameter. |
MIN |
|
No |
A value that is less than or equal to the maximum value allowed for the parameter. |
MAX |
|
No |
Set this key to |
|
Revision History
This section summarizes the updates to task templates, compared to the previous release:
- The
ENVIMetatask
base class was introduced. - The
ENVIAbortableTaskFromProcedure
base class was introduced. - You can write your own custom base class.
- The
dataType
parameter key now acceptsENVIVector
andENVIROI
data types, in addition toENVIRaster
.