<!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>B.1.2 Binary tables</TITLE> <META NAME="description" CONTENT="B.1.2 Binary 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="node181.html"> <LINK REL="previous" HREF="node177.html"> <LINK REL="up" HREF="node176.html"> <LINK REL="next" HREF="node181.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html5281" HREF="node181.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5275" HREF="node176.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5269" HREF="node179.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5277" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5279" HREF="node258.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5282" HREF="node181.html">B.1.3 NetCDF tables</A> <B> Up:</B> <A NAME="tex2html5276" HREF="node176.html">B.1 Table data</A> <B> Previous:</B> <A NAME="tex2html5270" HREF="node179.html">B.1.1.2 Optional segment header</A> <B> <A NAME="tex2html5278" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5280" HREF="node258.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION001912000000000000000"></A> <A NAME="29726"></A> <A NAME="29727"></A> <BR> B.1.2 Binary tables </H2> <A NAME="30039"></A> <A NAME="30040"></A> <A NAME="30041"></A> <A NAME="30042"></A> <P> <A NAME="tex2html1715" HREF="http://gmt.soest.hawaii.edu"><B>GMT</B></A> programs also support native binary tables to speed up input-output for i/o-intensive tasks like gridding and preprocessing. Files may have no header (hence the <B>-H</B> option cannot be used) and all data must either be single or double precision (no mixing allowed). Multiple segment files are allowed (<B>-m</B>) and the segment headers are assumed to be records where all the fields equal NaN. Flags appended to <B>-m</B> are ignored. The format and number of fields are specified with the <B>-b</B> option. Thus, for input you may set <B>-bi</B>[<B>s</B>][<I>n</I>], where <B>s</B> designates single precision (default is <B>d</B> for double) and <I>n</I> is the number of fields. For output, use <B>-bo</B>[<B>s</B>] (the programs know how many columns to write, unless you use <B>-m</B> in which case we need to know the number of output columns up front). If you need to swap the byte-order on either input or output you must use upper case <B>S</B> or <B>D</B> instead. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html5281" HREF="node181.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5275" HREF="node176.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5269" HREF="node179.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5277" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5279" HREF="node258.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5282" HREF="node181.html">B.1.3 NetCDF tables</A> <B> Up:</B> <A NAME="tex2html5276" HREF="node176.html">B.1 Table data</A> <B> Previous:</B> <A NAME="tex2html5270" HREF="node179.html">B.1.1.2 Optional segment header</A> <B> <A NAME="tex2html5278" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5280" HREF="node258.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2011-02-27 </ADDRESS> </BODY> </HTML>