GetColorTable Task
This task returns an array of red/green/blue (RGB) values from a specified IDL color table name.
Example
; Start the application
e = ENVI(/HEADLESS)
; Get the task from the catalog of ENVITasks
Task = ENVITask('GetColorTable')
; Specify task inputs
Task.COLOR_TABLE_NAME = 'CB-Paired'
; Run the task
Task.Execute
; Get the RGB array for the color table
Print, Task.OUTPUT_COLOR_TABLE
Syntax
Result = ENVITask('GetColorTable')
Input properties (Set, Get): COLOR_TABLE_NAME, REVERSE_COLOR_TABLE
Output properties (Get only): OUTPUT_COLOR_TABLE
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:
COLOR_TABLE_NAME (required)
Specify one of the following strings, indicating the name of the IDL color table:
B-W LINEAR
BLUE/WITE
GRN-RED-BLU-WHT
RED TEMPERATURE
BLUE/GREEN/RED/YELLOW
STD GAMMA-II
PRISM
RED-PURPLE
GREEN/WHITE LINEAR
GRN/WHT EXPONENTIAL
GREEN-PINK
BLUE-RED
16 LEVEL
RAINBOW
STEPS
STERN SPECIAL
Haze
Blue = Pastel - Red
Pastels
Hue Sat Lightness 1
Hue Sat Lightness 2
Hue Sat Value 1
Hue Sat Value 2
Purple-Red + Stripes
Beach
Mac Style
Oes A
Eos B
Hardcandy
Nature
Ocean
Peppermint
Plasma
Blue-Red
Rainbow
Blue Waves
Volcano
Waves
Rainbow18
Rainbow + white
Rainbow + black
CB-Accent
CB-Dark2
CB-Paired
CB-Pastel1
CB-Pastel2
CB-Set1
CB-Set2
CB-Set3
CB-Blues
CB-BuGn
CB-BuPu
CB-GnBu
CB-Greens
CB-Greys
CB-Oranges
CB-OrRd
CB-PuBu
CB-PuBuGn
CB-PuRd
CB-Purples
CB-RdPu
CB-Reds
CB-YlGn
CB-YlGnBu
CB-YlOrBr
CB-BrBG
CB-PuYG
CB-PRGn
CB-PuOr
CB-RdBu
CB-RdGy
CB-RdYlBu
CB-RdYlGn
CB-Spectral
OUTPUT_COLOR_TABLE
The resulting array containing the RGB values. The array dimensions are [256, 3].
REVERSE_COLOR_TABLE (optional)
Set this property to reverse the color table.
Version History
ENVI 5.5.1 |
Introduced |
API Version
4.2