ExtractColumnFromArray Task
This task extracts a single column from an array.
Example
; Start the application
e = ENVI(/HEADLESS)
; Get the task from the catalog of ENVITasks
Task = ENVITask('ExtractColumnFromArray')
; Define inputs
Task.INPUT_ARRAY = [[1,2,3], [4,5,6]]
Task.INDEX = 0
; Run the task
Task.Execute
Print, Task.COLUMN
; IDL prints: 1, 4
Syntax
Result = ENVITask('ExtractColumnFromArray')
Input parameters (Set, Get): INDEX, INPUT_ARRAY
Output parameters (Get only): OUTPUT_COLUMN
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 (required)
Specify a zero-based index number that corresponds to the column to extract.
INPUT_ARRAY (required)
Specify the input URI.
Output Parameters
OUTPUT_COLUMN
This is the extracted column.
Methods
Properties
Version History
|
ENVI 5.6 |
Introduced |