GRDSAMPLE

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

NAME

grdsample - Resample a grd file onto a new grid  

SYNOPSIS

grdsample in_grdfile -Gout_grdfile [ -F ] [ -Idx[m|c][/dy[m|c]] ] [ -L ] [ -Nnx/ny ] [ -Q ] [ -Rwest/east/south/north[r] ] [ -T ] [ -V ]  

DESCRIPTION

grdsample reads a 2-D binary grd file and resamples it on a new grid specified by either a new number of nodes or a new grid-spacing. A sub-region may also be selected. A bicubic [Default] or bilinear interpolation is used to sample the grid. Free boundary conditions are assumed (curvature and 3rd normal derivative is zero). grdsample is mostly used to resample a grid onto a finer grid. Going the other way will introduce aliasing and is better done using grdfft or grdfilter.
in_grdfile
The name of the input 2-D binary grd file.
-G
The name of the output grd file.
 

OPTIONS

No space between the option flag and the associated arguments.
-F
Force pixel registration. [Default is grid registration].
-I
Sets the new grid spacing. Append m for minutes, or c for seconds.
-L
Indicates that the input grdfile is a geographical grid.
-Q
Quick mode, use bilinear rather than bicubic interpolation. #include "explain_-R.txt"
-T
Translates between pixel registration and gridline registration. If input data is gridline registered, then output will be a pixel grid, and vice versa. The input file's -R and -I are used so no other options are necessary (except possibly -Q). #include "explain_-V.txt"
 

EXAMPLES

To resample the 5 x 5 minute grid in hawaii_5by5_topo.grd onto a 1 minute grid, try

grdsample hawaii_5by5_topo.grd -I1m -Ghawaii_1by1_topo.grd

To translate the gridline-registered file surface.grd to pixel registration, try

grdsample surface.grd -T -Gpixel.grd  

SEE ALSO

gmt, grdfft, grdfilter #include "refs.i"


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
SEE ALSO

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