A land mask based on the full ETOPO1 dataset
the name of the etopo geotiff (without file extension).
the path to a folder containing the etopo geotiff
the path to a writeable folder
the logical value to return for land.
Generate a land mask function based on ETOPO1 topography. The etopo geotiff is not bundled with the package and must be downloaded from https://www.ngdc.noaa.gov/mgg/global/global.html.
When the mask is intially created, a native raster (grd,gri)
version of the geotiff is created in the directory
which must be writable. This file can be deleted when the
computation is finished.
land argument determines whether the mask function
FALSE for land. The mask is constant
tm argument to the mask is ignored.
a logical indicating whether the point is land or sea.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.