vis/color/
mg_cpt2ct.pro
includes main-level programRoutines
top mg_cpt2ct
result = mg_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, mg_cpt2ct('gmt/GMT_relief')
File attributes
Modification date: | Wed May 14 15:07:15 2014 |
Lines: | 63 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.