View source: R/process_layers.R
layer_mask | R Documentation |
This function crops and extends raster layers to a study area extent (bbox) defined by longitude and latitude then applies a mask based on a provided spatial polygon to remove areas outside the polygon.
layer_mask(layers, study_area)
layers |
A stack of raster layers ('SpatRaster' object) to be processed. |
study_area |
A spatial polygon ('sf' object) used to mask the raster layers. |
A 'SpatRaster' object representing the masked raster layers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.