File: minmax.html

package info (click to toggle)
gmt-doc 3.4-1.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,756 kB
  • ctags: 1,800
  • sloc: makefile: 30
file content (132 lines) | stat: -rw-r--r-- 3,736 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<HTML>
<HEAD>
<TITLE>minmax</TITLE>
</HEAD>
<BODY>
<H1>minmax</H1>
<HR>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->
       minmax - Find extreme values in data tables


</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>minmax</B> [ <I>files</I>] [ <B>-C</B> ] [ <B>-D</B> ] [ <B>-H</B>[<I>nrec</I>] ] [ <B>-I</B><I>dx</I>[/<I>dy</I>] ] [
       <B>-L</B> ] [ <B>-M</B>[<I>flag</I>] ] [ <B>-:</B> ] [ <B>-bi</B>[<B>s</B>][<I>n</I>] ]


</PRE>
<H2>DESCRIPTION</H2><PRE>
       <B>minmax</B> reads its standard input [or from files] and  finds
       the  extreme  values in each of the columns. It recognizes
       NaNs and will print warnings if the number of columns vary
       from record to record.  As an option, <B>minmax</B> will find the
       extent of the first two columns rounded up and down to the
       nearest multiple of dx/dy. This output will be in the form
       <B>-R</B><I>w/e/s/n</I> which can be used directly in the  command  line
       for other programs, or simply in column form.

       <I>xyzfile</I>
              ASCII  [or  binary, see <B>-b</B>] file(s) holding a fixed
              number of data columns.


</PRE>
<H2>OPTIONS</H2><PRE>
       <B>-C</B>     Report the min/max values per  column  in  separate
              columns [Default uses &lt;min/max&gt; format]

       <B>-D</B>     Sets   longitude   discontinuity  to  the  Dateline
              (-180/+180)   [Default   is   Greenwich   (0-360)].
              Requires <B>-L</B>.

       <B>-H</B>     Input  file(s)  has  Header  record(s).  Number  of
              header records can be changed by editing your .gmt
              defaults  file.  If  used,  <B><A HREF="GMT.html">GMT</A></B> default is 1 header
              record.

       <B>-I</B>     Report the min/max of the first two columns to  the
              nearest  multiple  of dx and dy, and output this in
              the form -Rw/e/s/n (unless <B>-C</B> is set).

       <B>-L</B>     Indicates that the x  column  contains  longitudes,
              which  may  be  periodic  in  360  degrees [Default
              assumes no periodicity].

       <B>-M</B>     Multiple segment file(s). Segments are separated by
              a  special record.  For ASCII files the first char
              acter must be <I>flag</I> [Default is  '&gt;'].   For  binary
              files all fields must be NaN.

       <B>-:</B>     Toggles  between  (longitude,latitude)  and  (lati
              tude,longitude) input/output. [Default  is  (longi
              tude,latitude)].  Applies to geographic coordinates
              only.  Only works when <B>-I</B> is selected.

       <B>-bi</B>    Selects binary input. Append <B>s</B> for single precision
              columns].


</PRE>
<H2>EXAMPLES</H2><PRE>
       To  find the extreme values in the file ship_gravity.xygd,
       try

       minmax ship_gravity.xygd

       Output should look like

       ship_gravity.xygd:    N    =    6992     &lt;326.125/334.684&gt;
       &lt;-28.0711/-8.6837&gt; &lt;-47.7/177.6&gt; &lt;0.6/3544.9&gt;

       To  find  the  extreme  values in the file track.xy to the
       nearest 5 units and use this region to draw a  line  using
       <A HREF="psxy.html">psxy</A>, try

       psxy `minmax <B>-I</B>5 track.xy` track.xy <B>-Jx</B>1 <B>-B</B>5 <B>-P</B> &gt; track.ps

       To find the min  and  max  values  for  each  column,  but
       rounded to integers, try

       minmax junkfile <B>-C</B> <B>-I</B>1


</PRE>
<H2>SEE ALSO</H2><PRE>
       <I>gmt</I>(l)


























</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
<body bgcolor="#ffffff">