API documentation for visualization library

Michael Galloy

single page | use frames     summary     class     fields     routine details     file attributes



includes main-level program

top vis_cpt2ct

result = vis_cpt2ct(filename [, name=string])

Converts a GMT color table file to an RGB color table.

Return value

bytarr(256, 3)


filename in required type=string

filename of GMT color table file, i.e., .cpt file; if filename is not found then assumed to be in the cpt-city catalog


name out optional type=string

color table name


For example, if the GMT color tables files were stored in the cpt directory:

IDL> tvlct, vis_cpt2ct('gmt/GMT_relief')

File attributes

Modification date: Thu Mar 22 12:18:18 2012
Lines: 120
Docformat: rst rst