ra_mask | R Documentation |
Masking a raster object will filter the object to a spatial polygon with
potentially complicated geometries while ra_crop
will crop the
object to a rectangular extent.
ra_mask(ra, sp_polygon, pre_crop = TRUE, inverse = FALSE)
ra |
Raster object to be masked/filtered. |
sp_polygon |
Spatial polygon to be used as the filter. |
pre_crop |
Should the raster object be cropped before being masked? Note,
the default is |
inverse |
Should an inverse/punch/erase mask be conducted? |
Raster object.
Stuart K. Grange.
ra_crop
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.