MODIFYCT

The
MODIFYCT procedure updates the distribution
color table file
colors1.tbl
, located in the
colors
subdirectory of the
resource
subdirectory of the main IDL directory, or a user-designated file with a new, or modified, colortable.

This routine is written in the IDL language. Its source code can be found in the file
modifyct.pro
in the
lib
subdirectory of the IDL distribution.

Calling Sequence

MODIFYCT,
Itab, Name, R, G, B

Arguments

Itab

The index of the table to be updated, numbered from 0 to 255. If the specified entry is greater than the next available location in the table, the entry will be added to the table in the available location rather than the index specified by
Itab
. On return,
Itab
contains the index for the location that was modified or extended. The modified table can be then be loaded with the IDL command: LOADCT,
Itab
.

Name

A string, up to 32 characters long, that contains the name for the new color table.

R

A 256-element vector that contains the values for the red colortable.

G

A 256-element vector that contains the values for the green colortable.

B

A 256-element vector that contains the values for the blue colortable.

Keywords

FILE

Set this keyword to the name of a colortable file to be modified instead of the file
colors1.tbl
in the IDL directory.