<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!--Converted with LaTeX2HTML 2002-2-1 (1.71) original version by: Nikos Drakos, CBLU, University of Leeds * revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan * with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --> <HTML> <HEAD> <TITLE>4.15 Color palette tables</TITLE> <META NAME="description" CONTENT="4.15 Color palette tables"> <META NAME="keywords" CONTENT="GMT_Docs"> <META NAME="resource-type" CONTENT="document"> <META NAME="distribution" CONTENT="global"> <META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1"> <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> <LINK REL="STYLESHEET" HREF="GMT_Docs.css"> <LINK REL="next" HREF="node71.html"> <LINK REL="previous" HREF="node67.html"> <LINK REL="up" HREF="node31.html"> <LINK REL="next" HREF="node69.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html3512" HREF="node69.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3506" HREF="node31.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3500" HREF="node67.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3508" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3510" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3513" HREF="node69.html">4.15.1 Categorical CPT files</A> <B> Up:</B> <A NAME="tex2html3507" HREF="node31.html">4. General features</A> <B> Previous:</B> <A NAME="tex2html3501" HREF="node67.html">4.14 Specifying area fill</A> <B> <A NAME="tex2html3509" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3511" HREF="node256.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION0012150000000000000000"> 4.15 Color palette tables</A> </H1> <P> <A NAME="18270"></A> <A NAME="18271"></A> <P> Several programs, such as those which read 2-D gridded data sets and create colored images or shaded reliefs, need to be told what colors to use and over what <I>z</I>-range each color applies. This is the purpose of the color palette table (cpt-file). These files may also be used by <A NAME="tex2html1177" HREF="../man/psxy.html"><I><B>psxy</B></I></A><A NAME="19425"></A> and <A NAME="tex2html1178" HREF="../man/psxyz.html"><I><B>psxyz</B></I></A><A NAME="19430"></A> to plot color-filled symbols. For most applications, you will simply create a cpt-file using the tool <A NAME="tex2html1179" HREF="../man/makecpt.html"><I><B>makecpt</B></I></A><A NAME="19435"></A> which will take an existing color table and resample it to fit your chosen data range, or use <A NAME="tex2html1180" HREF="../man/grd2cpt.html"><I><B>grd2cpt</B></I></A><A NAME="19440"></A> to build a cpt-file based on the data distribution in one or more given grid files. However, in some situations you will need to make a cpt-file by hand or using text tools like <I>awk</I><A NAME="19444"></A> or <I>perl</I><A NAME="19447"></A>. <P> Color palette tables (CPT) comes in two flavors: (1) Those designed to work with categorical data (e.g., data where interpolation of values is undefined) and (2) those designed for regular, continuously-varying data. <P> <BR><HR> <!--Table of Child-Links--> <A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A> <UL> <LI><A NAME="tex2html3514" HREF="node69.html">4.15.1 Categorical CPT files</A> <LI><A NAME="tex2html3515" HREF="node70.html">4.15.2 Regular CPT files</A> </UL> <!--End of Table of Child-Links--> <HR> <!--Navigation Panel--> <A NAME="tex2html3512" HREF="node69.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3506" HREF="node31.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3500" HREF="node67.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3508" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3510" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3513" HREF="node69.html">4.15.1 Categorical CPT files</A> <B> Up:</B> <A NAME="tex2html3507" HREF="node31.html">4. General features</A> <B> Previous:</B> <A NAME="tex2html3501" HREF="node67.html">4.14 Specifying area fill</A> <B> <A NAME="tex2html3509" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3511" HREF="node256.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2010-07-14 </ADDRESS> </BODY> </HTML>