<!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.11 Output data formats</TITLE> <META NAME="description" CONTENT="4.11 Output data formats"> <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="node65.html"> <LINK REL="previous" HREF="node63.html"> <LINK REL="up" HREF="node31.html"> <LINK REL="next" HREF="node65.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html3456" HREF="node65.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3450" HREF="node31.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3444" HREF="node63.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3452" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3454" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3457" HREF="node65.html">4.12 PostScript features</A> <B> Up:</B> <A NAME="tex2html3451" HREF="node31.html">4. General features</A> <B> Previous:</B> <A NAME="tex2html3445" HREF="node63.html">4.10 Input data formats</A> <B> <A NAME="tex2html3453" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3455" HREF="node256.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H1><A NAME="SECTION0012110000000000000000"></A> <A NAME="sec:output_data"></A><A NAME="18065"></A> <BR> 4.11 Output data formats </H1> <P> The numerical output from <A NAME="tex2html1159" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> programs can be binary (when <B>-bo</B> is used) or ASCII [Default]. In the latter case the issue of formatting becomes important. <A NAME="tex2html1160" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> provides extensive machinery for allowing just about any imaginable format to be used on output. Analogous to the processing of input data, several templates guide the formatting process. These are <B>OUTPUT_DATE_FORMAT</B> and <B>OUTPUT_CLOCK_FORMAT</B> for calendar-time coordinates, <B>OUTPUT_DEGREE_FORMAT</B> for geographical coordinates, and <B>D_FORMAT</B> for generic floating point data. In addition, the user have control over how columns are separated via the <B>FIELD_SEPARATOR</B> parameter. Thus, as an example, it is possible to create limited FORTRAN-style card records by setting <B>D_FORMAT</B> to %7.3lf and <B>FIELD_SEPARATOR</B> to none [Default is tab]. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html3456" HREF="node65.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3450" HREF="node31.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3444" HREF="node63.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3452" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3454" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3457" HREF="node65.html">4.12 PostScript features</A> <B> Up:</B> <A NAME="tex2html3451" HREF="node31.html">4. General features</A> <B> Previous:</B> <A NAME="tex2html3445" HREF="node63.html">4.10 Input data formats</A> <B> <A NAME="tex2html3453" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3455" HREF="node256.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2010-07-14 </ADDRESS> </BODY> </HTML>