pygmt.grd2xyz¶
-
pygmt.
grd2xyz
(grid, **kwargs)[source]¶ Create xyz tables from grid files.
Read a binary 2-D grid files and write out xyz-triplets in ASCII [or binary] format to a standard output.
Full option list at https://docs.generic-mapping-tools.org/latest/grd2xyz.html
Aliases:
R = region
V = verbose
- Parameters
grid (str or xarray.DataArray) – The file name of the input grid or the grid loaded as a DataArray. This is the only required parameter.
region (str or list) – Required if this is the first plot command. xmin/xmax/ymin/ymax[+r][+uunit]. Specify the region of interest.
Select verbosity level [Default is w], which modulates the messages written to stderr. Choose among 7 levels of verbosity:
q - Quiet, not even fatal error messages are produced
e - Error messages only
w - Warnings [Default]
t - Timings (report runtimes for time-intensive algorithms);
i - Informational messages (same as
verbose=True
)c - Compatibility warnings
d - Debugging messages
- Returns
info (str) – A string with information about the grid.