mglib

Personal IDL library for M. Galloy

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

vis/color/

mg_cpt2ct.pro

includes main-level program

Routines

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 the cpt-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
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.