pygmt.grdlandmask¶
-
pygmt.
grdlandmask
(**kwargs)[source]¶ Create a grid file with set values for land and water.
Read the selected shoreline database and create a grid to specify which nodes in the specified grid are over land or over water. The nodes defined by the selected region and lattice spacing will be set according to one of two criteria: (1) land vs water, or (2) the more detailed (hierarchical) ocean vs land vs lake vs island vs pond.
Full option list at https://docs.generic-mapping-tools.org/latest/grdlandmask.html
Aliases:
G = outgrid
I = increment
R = region
- Parameters
- Returns
ret (xarray.DataArray or None) – Return type depends on whether the
outgrid
parameter is set:xarray.DataArray
ifoutgrid
is not setNone if
outgrid
is set (grid output will be stored in file set byoutgrid
)