1SEGY2GRD(1)                  Generic Mapping Tools                 SEGY2GRD(1)
2
3
4

NAME

6       segy2grd - Converting SEGY file to grid file format
7

SYNOPSIS

9       segy2grd    segyfile    -Ggrdfile   -Ixinc[unit][=|+][/yinc[unit][=|+]]
10       -Rwest/east/south/north[r] [ -A[n|z] ] [ -Dxname/yname/zname/scale/off‐
11       set/title/remark  ]  [  -F  ]    [  -Nnodata  ]  [ -S[zfile] ] [ -V ] [
12       -Z[flags] ] [ -:[i|o] ] [ -bi[s|S|d|D[ncol]|c[var1/...]] ]
13

DESCRIPTION

15       segy2grd reads an IEEE SEGY file and creates a binary grid file. Either
16       a simple mapping (equivalent to xyz2grd -Z) or a more complicated aver‐
17       aging where a particular grid cell includes values from more  than  one
18       sample  in  the SEGY file can be done.  segy2grd will report if some of
19       the nodes are not filled in with data. Such unconstrained nodes are set
20       to  a  value  specified  by the user [Default is NaN].  Nodes with more
21       than one value will be set to the average value.
22
23       segyfile
24              ASCII [or binary] file holding z or (x,y,z) values. xyz triplets
25              do not have to be sorted (for binary triplets, see -b). 1-column
26              z tables must be sorted and the -Z must be set).
27
28       -G     grdfile is the name of the binary output grid file.
29
30       -I     x_inc [and optionally y_inc] is the grid spacing.  Append  m  to
31              indicate minutes or c to indicate seconds.
32
33       -R     west, east, south, and north specify the Region of interest, and
34              you   may   specify   them   in   decimal    degrees    or    in
35              [+-]dd:mm[:ss.xxx][W|E|S|N]  format.  Append r if lower left and
36              upper right map coordinates are given instead of  w/e/s/n.   The
37              two  shorthands  -Rg  and -Rd stand for global domain (0/360 and
38              -180/+180 in longitude respectively, with -90/+90 in  latitude).
39              Alternatively, specify the name of an existing grid file and the
40              -R settings (and grid spacing, if applicable)  are  copied  from
41              the grid.
42

OPTIONS

44       -A     Add  up  multiple  values  that belong to the same node (same as
45              -Az).  Append n to simply count the number of data  points  that
46              were assigned to each node.  [Default (no -A option) will calcu‐
47              late mean value]. Not used for simple mapping.
48
49       -D     Give values for xname, yname, zname, scale, offset,  title,  and
50              remark.   To  leave some of these values untouched, specify = as
51              the value.
52
53       -F     Force pixel registration [Default is grid registration].
54
55       -N     No data. Set nodes with no input sample to this  value  [Default
56              is NaN].
57
58       -S     set  variable  spacing header is c for cdp, o for offset, b<num‐
59              ber> for 4-byte float starting at byte number  If  -S  not  set,
60              assumes even spacing of samples at the dx, dy supplied with -I
61
62       -L     Override number of samples in each trace
63
64       -X     applies  scalar  x-scale to coordinates in trace header to match
65              the coordinates specified in -R
66
67       -Y     Specifies sample interval as s_int if incorrect in the SEGY file
68
69       -M     Fix number of traces to read in. Default  tries  to  read  10000
70              traces.  -M0 will read number in binary header, -Mn will attempt
71              to read only n traces.
72
73       -V     Selects verbose mode, which will send progress reports to stderr
74              [Default runs "silently"].
75
76
77       EXAMPLES
78              To  create  a grid file from an even spaced SEGY file test.segy,
79              try
80
81              segy2grd test.segy -I0.1/0.1 -Gtest.grd -R198/208/18/25 -V
82
83              Note that this will read in 18-25s (or km) on  each  trace,  but
84              the first trace will be assumed to be at X=198
85
86              To  create  a  grid  file from the SEGY file test.segy, locating
87              traces according to the CDP number, where there are 10 CDPs  per
88              km and the sample interval is 0.1, try
89
90              segy2grd  test.segy   -Gtest.grd -R0/100/0/10 -I0.5/0.2 -V -X0.1
91              -Y0.1
92
93              Because the grid interval is larger than the SEGY file sampling,
94              the individual samples will be averaged in bins
95

SEE ALSO

97       GMT(1), grd2xyz(1), grdedit(1), pssegy(1)
98
99
100
101GMT 4.5.6                         10 Mar 2011                      SEGY2GRD(1)
Impressum