color/
vis_cpt2ct.pro
includes main-level programtop vis_cpt2ct
result = vis_cpt2ct(filename [, name=string])
Converts a GMT color table file to an RGB color table.
Return value
bytarr(256, 3)
Parameters
- 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 thecpt-city
catalog
Keywords
- name out optional type=string
color table name
Examples
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 |