XYZ2GRD

Section: Misc. Reference Manual Pages (l)
Updated: DATE
Index Return to Main Contents
 

NAME

xyz2grd - Converting an ASCII or binary table to grd file format  

SYNOPSIS

xyz2grd xyzfile -Ggrdfile -Ix_inc[m|c][/y_inc[m||cc]] -Rwest/east/south/north [ -Dxunit/yunit/zunit/scale/offset/title/remark ] [ -F ] [ -H ] [ -L ] [ -Nnodata ] [ -V ] [ -Z ] [ -: ] [ -b[d] ]  

DESCRIPTION

xyz2grd reads an ASCII [or binary] table with xyz triplets in the first 3 columns and creates a binary grdfile. xyz2grd will report if some of the nodes are not filled in with data. Such unconstrained nodes are set to a value specified by the user [Default is NaN]. As an option, a 1-column z-table may be read assuming the ordering follows the scanline orientation and that all nodes are present.
xyzfile
ASCII [or binary, see -b] file holding (x,y,z) values in the first three columns for all the nodes. The triplets do not have to be sorted (unless -Z is used).
-G
grdfile is the name of the binary output grdfile.
-I
x_inc [and optionally y_inc] is the gridding interval. Append m to indicate minutes, or c to indicate seconds. #include "explain_-R.txt"
 

OPTIONS

-D
Give values for xunit, yunit, zunit, scale, offset, title, and remark. To leave some of these values untouched, specify = as the value.
-F
Force pixel registration [Default is grid registration]. #include "explain_-H.txt" Not used with binary data.
-L
Indicates that the x column contains longitudes, which may differ from the regions in -R by [multiples of] 360 degrees [Default assumes no periodicity].
-N
No data. Set nodes with no data to this value [Default is NaN]. #include "explain_-V.txt"
-Z
Only read a 1-column ASCII [or binary] table. This assumes that all the nodes are present and sorted according to the scanline ordering convention. #include "explain_-t.txt"
-b
Selects binary input mode (double precision) [Default is ASCII]. Append d to indicate double precision [Default is single].
 

EXAMPLES

To create a grdfile from the ASCII data in hawaii_grv.xyz, try

xyz2grd hawaii_grv.xyz -Ddegree/degree/mGal/1/0/"Hawaiian Gravity"/"GRS-80 Ellipsoid used" -Ghawaii_grv_new.grd -R198/208/18/25 -I5m -V

To create a grdfile from the raw binary (single-precision) scanline-oriented data raw.b, try

xyz2grd raw.b -Dm/m/m/1/0/=/= -Graw.grd -R0/100/0/100 -I1 -V -Z -b  

SEE ALSO

gmt, grd2xyz, grdedit #include "refs.i"


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 07:10:59 GMT, January 07, 2025