<!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.4.12 Data type selection: The -f option</TITLE> <META NAME="description" CONTENT="4.4.12 Data type selection: The -f option"> <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="node57.html"> <LINK REL="previous" HREF="node55.html"> <LINK REL="up" HREF="node39.html"> <LINK REL="next" HREF="node57.html"> </HEAD> <BODY bgcolor="#ffffff"> <!--Navigation Panel--> <A NAME="tex2html3420" HREF="node57.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3414" HREF="node39.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3408" HREF="node55.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3416" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3418" HREF="node258.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3421" HREF="node57.html">4.4.13 Data gap detection:</A> <B> Up:</B> <A NAME="tex2html3415" HREF="node39.html">4.4 Standardized command line</A> <B> Previous:</B> <A NAME="tex2html3409" HREF="node55.html">4.4.11 Number of Copies:</A> <B> <A NAME="tex2html3417" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3419" HREF="node258.html">Index</A></B> <BR> <BR> <!--End of Navigation Panel--> <H2><A NAME="SECTION0012412000000000000000"></A> <A NAME="18414"></A> <BR> 4.4.12 Data type selection: The <B>-f</B> option </H2> <A NAME="19198"></A> <A NAME="19199"></A> <A NAME="19200"></A> <A NAME="19201"></A> <P> When map projections are not required we must explicitly state what kind of data each input or output column contains. This is accomplished with the <B>-f</B> option. Following an optional <B>i</B> (for input only) or <B>o</B> (for output only), we append a text string with information about each column (or range of columns) separated by commas. Each string starts with the column number (0 is first column) followed by either x (longitude), y (latitude), T (absolute calendar time) or t (relative time). If several consecutive columns have the same format you may specify a range of columns rather than a single column, i.e., 0-4 for the first 5 columns. For example, if our input file has geographic coordinates (latitude, longitude) with absolute calendar coordinates in the columns 3 and 4, we would specify <B>fi</B>0y,1x,3-4T. All other columns are assumed to have the default, floating point format and need not be set individually. The shorthand <B>-f</B>[<B>i</B><IMG WIDTH="8" HEIGHT="31" ALIGN="MIDDLE" BORDER="0" SRC="img12.png" ALT="$\vert$"><B>o</B>]<B>g</B> means <B>-f</B>[<B>i</B><IMG WIDTH="8" HEIGHT="31" ALIGN="MIDDLE" BORDER="0" SRC="img12.png" ALT="$\vert$"><B>o</B>]0x,1y (geographic coordinates). For more information, see Sections <A HREF="node65.html#sec:input_data">4.10</A> and <A HREF="node66.html#sec:output_data">4.11</A>. <P> <HR> <!--Navigation Panel--> <A NAME="tex2html3420" HREF="node57.html"> <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> <A NAME="tex2html3414" HREF="node39.html"> <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> <A NAME="tex2html3408" HREF="node55.html"> <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> <A NAME="tex2html3416" HREF="node1.html"> <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> <A NAME="tex2html3418" HREF="node258.html"> <IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> <BR> <B> Next:</B> <A NAME="tex2html3421" HREF="node57.html">4.4.13 Data gap detection:</A> <B> Up:</B> <A NAME="tex2html3415" HREF="node39.html">4.4 Standardized command line</A> <B> Previous:</B> <A NAME="tex2html3409" HREF="node55.html">4.4.11 Number of Copies:</A> <B> <A NAME="tex2html3417" HREF="node1.html">Contents</A></B> <B> <A NAME="tex2html3419" HREF="node258.html">Index</A></B> <!--End of Navigation Panel--> <ADDRESS> Paul Wessel 2011-02-27 </ADDRESS> </BODY> </HTML>