topocolormap#

[cmap_ncolor, cmap_water, cmap_land] = topocolormap(zcolormap, ncolor, dispout)

Description#

Export a topographic colormap

Inputs#

zcolormap=’topocmap’;
Colormap for z data
Topographic (Water/Land) colormaps:
‘topocmap’: colormap developed by Arash Karimpour
‘topocmaprelief’: colormap developed by Arash Karimpour
‘topocmapocean’: colormap developed by Arash Karimpour
‘topocmapearth’: colormap developed by Arash Karimpour
‘blueocean’: colormap developed by Arash Karimpour
‘blueoceansea’: colormap developed by Arash Karimpour
‘greenearth’: colormap developed by Arash Karimpour
‘greenearthland’: colormap developed by Arash Karimpour
‘blgrtopocmap’: colormap developed by Arash Karimpour
‘blrdtopocmap’: colormap developed by Arash Karimpour
‘grayearth’: colormap developed by Arash Karimpour
‘gmtglobe’: GMT_globe colormap, https://www.giss.nasa.gov/tools/panoply/colorbars/
‘gmtrelief’: GMT_relief colormap, https://www.giss.nasa.gov/tools/panoply/colorbars/
‘aendekerk’: Colormap from Florian Aendekerk, http://www.mathworks.com/matlabcentral/fileexchange/63590-landseacolormap-m-
Any other available color map such as ‘cool’, ‘winter’, etc can be used
Colormap can be defined by user as [n*3] array in RGB color format between 0 and 255
ncolor=256;

Number of colors to be used in colormap

dispout=’no’;

Define to display outputs or not (‘yes’: display, ‘no’: not display)

Outputs#

cmap_ncolor
Colormap for z levels with ncolor number of colors in RGB color format between 0 and 1
To convert 0-1 scale to 0-255 scale, multiply cmap_ncolor values by 255
cmap_water

Colormap for water in RGB color format between 0 and 1

cmap_land

Colormap for land in RGB color format between 0 and 1

Examples#

[cmap_ncolor,cmap_water,cmap_land]=topocolormap('topocmap',256,'yes');
[cmap_ncolor,cmap_water,cmap_land]=topocolormap('cool',256,'yes');

References#

Colormap

Color