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>grdedit</TITLE>
</HEAD>
<BODY>
<H1>grdedit</H1>
<HR>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->
grdedit - Modifying the header in a 2-D grdfile
</PRE>
<H2>SYNOPSIS</H2><PRE>
<B>grdedit</B> <I>grdfile</I> [ <B>-A</B> ] [ <B>-D</B><I>xunit/yunit/zunit/scale/off</I>
<I>set/title/remark</I> ] [ <B>-R</B><I>west/east/south/north</I>[<B>r</B>] ] [ <B>-S</B> ] [
<B>-V</B> ]
</PRE>
<H2>DESCRIPTION</H2><PRE>
<B>grdedit</B> reads the header information in a binary 2-D grd
file and replaces the information with values provided on
the command line [if any]. As an option, global, geograph
ical grids (with 360 degrees longitude range) can be
rotated in the east-west direction. <B>grdedit</B> only operates
on files containing a grdheader.
No space between the option flag and the associ
ated arguments. Use upper case for the option flags and
lower case for modifiers.
<I>grdfile</I>
Name of the 2-D grdfile to modify
</PRE>
<H2>OPTIONS</H2><PRE>
<B>-A</B> If necessary, adjust the file's <I>x</I><B>_</B><I>inc,</I> <I>y</I><B>_</B><I>inc</I> to be
compatible with its domain (or a new domain set
with <B>-R</B>). Older gridfiles (i.e., created prior to
GMT 3.1) often had excessive slop in' <I>x</I><B>_</B><I>inc,</I> <I>y</I><B>_</B><I>inc</I>
and an adjustment is necessary. Newer files are
created correctly.
<B>-D</B> Give new values for <I>xunit,</I> <I>yunit,</I> <I>zunit,</I> <I>scale,</I>
<I>offset,</I> <I>title,</I> and <I>remark</I>. To leave some of the
values untouched, specify = as the new value.
<B>-R</B> <I>west,</I> <I>east,</I> <I>south,</I> and <I>north</I> specify the Region of
interest. To specify boundaries in degrees and min
utes [and seconds], use the dd:mm[:ss] format.
Append <B>r</B> if lower left and upper right map coordi
nates are given instead of wesn. The new w/e/s/n
values will replace those in the grid, and the
<I>x</I><B>_</B><I>inc,</I> <I>y</I><B>_</B><I>inc</I> values are adjusted, if necessary.
<B>-S</B> For global, geographical grids only. Grid values
will be shifted laterally according to the new bor
ders given in <B>-R</B>.
<B>-V</B> Selects verbose mode, which will send progress
reports to stderr [Default runs "silently"].
</PRE>
<H2>EXAMPLES</H2><PRE>
Let us assume the file data.grd covers the area
300/310/10/30. We want to change the boundaries from
grdedit data.grd <B>-R</B>-60/-50/10/30 <B>-D</B>=/=/=/=/=/"Gravity
Anomalies"/=
The grid world.grd has the limits 0/360/-72/72. To shift
the data so that the limits would be -180/180/-72/72, use
grdedit world.grd <B>-R</B>-180/180/-72/72 <B>-S</B>
The file junk.grd was created prior to GMT 3.1 with incom
patible <B>-R</B> and <B>-I</B> arguments. To reset the x- and y-incre
ments we run
grdedit junk.grd <B>-A</B>
</PRE>
<H2>SEE ALSO</H2><PRE>
<I>gmt</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">
|