GRD2XYZ
Section: Misc. Reference Manual Pages (l)
Updated: DATE
Index
Return to Main Contents
NAME
grd2xyz - Converting a grdfile to an ASCII or binary table
SYNOPSIS
grd2xyz grdfile [ -Z ] [ -b[d] ]
DESCRIPTION
grd2xyz reads a binary 2-D grdfile and writes out xyz-triplets in ASCII [or binary] format to standard output.
The ASCII file can be edited using any text editor. You can modify the
precision of the ASCII output format by editing the D_FORMAT parameter in your .gmtdefaults file, or
you may choose binary output using single or double precision storage. As an option you may output the
z-values without the (x,y) pair assuming scanline orientation.
- grdfile
-
The 2-D binary file to be converted.
OPTIONS
- -Z
-
Only write a 1-column ASCII [or binary] table using the scanline ordering convention.
- -b
-
Selects binary output mode [Default is ASCII]. Append d for double precision [Default is single].
EXAMPLES
To edit individual values in the 5' by 5' hawaii_grv.grd file, try
grd2xyz hawaii_grv.grd > hawaii_grv.xyz
To write a single precision binary file without the x,y positions from the file raw_data.grd file, try
grd2xyz raw_data.grd -Z -b > hawaii_grv.b
SEE ALSO
gmtdefaults, gmt, grdedit, xyz2grd
#include "refs.i"
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- EXAMPLES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 07:11:28 GMT, January 07, 2025