QueryTask Task
This task returns a hash that describes the properties of a selected ENVITask.
Example
; Start the application
e = ENVI(/HEADLESS)
; Get the task from the catalog of ENVITasks
Task = ENVITask('QueryTask')
; Provide inputs
Task.Task_Name = 'SpectralIndex'
; Run the task
Task.Execute
; Print the task parameters
Print, Task.DEFINITION
Syntax
Result = ENVITask('QueryTask')
Input parameters (Set, Get): TASK_NAME
Output parameters (Get only): DEFINITION
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
TASK_NAME (required)
A string with a selected task name to query. Use one of the following options to get a list of task names:
- See the ENVITask topic
- Use the QueryTaskCatalog task as follows:
IDL> e = ENVI(/headless)
ENVI> Task = ENVITask('QueryTaskCatalog')
ENVI> Task.Execute
ENVI> Print, Task.TASKS, FORMAT='(A)'
- Print the ENVI.Task_Names property as follows:
IDL> e = ENVI(/headless)
ENVI> Tasks = e.Task_Names
ENVI> Print, Tasks, FORMAT='(A)'
Output Parameters
DEFINITION
An ENVITaskInfo hash that describes the properties of an ENVI task.
Methods
Properties
Version History
|
ENVI 5.3 |
Introduced |
|
ENVI 5.3 SP2 |
DEFINITION returns a ENVITaskInfo hash |