GRDMASK
Section: Misc. Reference Manual Pages (l)
Updated: DATE
Index
Return to Main Contents
NAME
grdmask - Create mask grdfiles from xy paths.
SYNOPSIS
grdmask pathfiles -Gmask_grd_file] -Ixinc[m|c][/yinc[m|c]]
-Rwest/east/south/north[r] [ -F ] [ -M[flag] ] [ -Nout/edge/in ] [ -V ] [ -: ]
DESCRIPTION
grdmask reads one or more xy-files that each define a closed polygon. The nodes defined by
the specified region and lattice spacing will be set equal to one of three possible values
depending if the node is outside, on the polygon perimeter, or inside the polygon. The
resulting mask grdfile may be used in subsequent operations involving grdmath to mask out
data from polygonal areas.
- pathfiles
-
The name of 1 or more ASCII files holding the polygon(s).
- -G
-
Name of resulting output mask grd file.
- -I
-
xinc [and optionally yinc] is the grid spacing. Append m to indicate minutes, c to indicate seconds.
#include "explain_-R.txt"
OPTIONS
- -F
-
Force pixel registration. [Default is grid registration].
- -M
-
Multiple segment file. Segments are separated by a record whose first character is flag.
[Default is '>'].
- -N
-
Sets the values that will be assigned to nodes that are outside the polygons,
on the edge, or inside. Values can be any number, including the
textstring NaN [Default is 0/0/1].
#include "explain_-V.txt"
EXAMPLES
To set all nodes inside and on the polygons coastline_*.xy to 0, and outside points
to 1, do
grdmask coastline_*.xy -R-60/-40/-40/-30 -I5m -N1/0/0 -Gland_mask.grd -V
SEE ALSO
gmt, grdlandmask, grdmath, grdclip, psmask, psclip
#include "refs.i"
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- EXAMPLES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 07:10:58 GMT, January 07, 2025