File: grdclip.html

package info (click to toggle)
gmt-doc 3.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 4,756 kB
  • ctags: 1,800
  • sloc: makefile: 30
file content (80 lines) | stat: -rw-r--r-- 2,082 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
<HTML>
<HEAD>
<TITLE>grdclip</TITLE>
</HEAD>
<BODY>
<H1>grdclip</H1>
<HR>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->
       grdclip - Clipping of range in grdfiles.


</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>grdclip</B> <I>input</I><B>_</B><I>file.grd</I> <B>-G</B><I>output</I><B>_</B><I>file.grd</I> [ <B>-Sa</B><I>high/above</I> ]
       [ <B>-Sb</B><I>low/below</I> ] [ <B>-V</B> ]


</PRE>
<H2>DESCRIPTION</H2><PRE>
       <B>grdclip</B> will set values &lt; <I>low</I> to  <I>below</I>  and/or  values  &gt;
       <I>high</I>  to <I>above</I>. Useful when you want all of a continent or
       an ocean to fall into one color or grayshade in image pro
       cessing,  or  clipping  of  the  range  of  data values is
       required. <I>above/below</I> can be any number or NaN (Not a Num
       ber).  You must choose at least one of <B>-Sa</B> or <B>-Sb</B>.

       <I>input</I><B>_</B><I>file.grd</I>
              The input 2-D binary grdfile.

       <B>-G</B>     <I>output</I><B>_</B><I>file.grd</I> is the modified output grdfile.


</PRE>
<H2>OPTIONS</H2><PRE>
       <B>-Sa</B>    Set all data[i] &gt; <I>high</I> to <I>above</I>.

       <B>-Sb</B>    Set all data[i] &lt; <I>low</I> to <I>below</I>.

       <B>-V</B>     Selects  verbose  mode,  which  will  send progress
              reports to stderr [Default runs "silently"].


</PRE>
<H2>EXAMPLES</H2><PRE>
       To set all values &gt; 70 to NaN and all values &lt; 0 to  0  in
       file data.grd, try:

       grdclip data.grd <B>-G</B>new_data.grd <B>-Sa</B>70/NaN <B>-Sb</B>0/0 <B>-V</B>


</PRE>
<H2>SEE ALSO</H2><PRE>
       <I>gmt</I>(l),     <I><A HREF="grdlandmask.html">grdlandmask</A></I>(l),     <I><A HREF="grdmask.html">grdmask</A></I>(l),    <I><A HREF="grdmath.html">grdmath</A></I>(l),
       <I><A HREF="grd2xyz.html">grd2xyz</A></I>(l), <I><A HREF="xyz2grd.html">xyz2grd</A></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">