<!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="node179.html"> <LINK REL="previous" HREF="node175.html"> <LINK REL="up" HREF="node174.html"> <LINK REL="next" HREF="node179.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html5179" HREF="node179.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5173" HREF="node174.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5167" HREF="node177.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5175" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5177" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5180" HREF="node179.html">B.1.3 NetCDF tables</A> <B> Up:</B> <A NAME="tex2html5174" HREF="node174.html">B.1 Table data</A> <B> Previous:</B> <A NAME="tex2html5168" HREF="node177.html">B.1.1.2 Optional segment header</A> <B> <A NAME="tex2html5176" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5178" HREF="node256.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION001912000000000000000"></A> <A NAME="29217"></A> <A NAME="29218"></A> <BR> B.1.2 Binary tables </H2> <A NAME="29530"></A> <A NAME="29531"></A> <A NAME="29532"></A> <A NAME="29533"></A> <P> <A NAME="tex2html1645" 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="tex2html5179" HREF="node179.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html5173" HREF="node174.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html5167" HREF="node177.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html5175" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html5177" HREF="node256.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html5180" HREF="node179.html">B.1.3 NetCDF tables</A> <B> Up:</B> <A NAME="tex2html5174" HREF="node174.html">B.1 Table data</A> <B> Previous:</B> <A NAME="tex2html5168" HREF="node177.html">B.1.1.2 Optional segment header</A> <B> <A NAME="tex2html5176" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html5178" HREF="node256.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2010-07-14 </ADDRESS> </BODY> </HTML>