View source: R/create_analysis_region.R
mask_by_range | R Documentation |
Create a raster mask based on an allowable range of values
mask_by_range(raster, range_mx)
raster |
A SpatRaster |
range_mx |
A matrix with one row for each layer of the raster to use when calculating mask, and a column each for "min" and "max", indicating min and max allowable values. Rownames must match layer names in raster. |
A SpatRaster mask: Values are NA where values fall outside the range and 1 where values fall within the range.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.