Description Usage Arguments Value See Also Examples
Intersects two masks to identify cells that meet both criteria for corresponding layers. Grid cells that satisfy both criteria are reclassified as 1, grid cells that fail at least one criteria are reclassified as 0.
1 | intersect_masks(temp.mask, precip.mask, filename = "", ...)
|
temp.mask |
Raster* object. Mask of grid cells that meet minimum
temperature threshold, may be result of |
precip.mask |
Raster* object. Mask of grid cells that meet minimum
precipitation threshold, may be result of |
filename |
Character. Optional output root filename passed to
|
... |
Other arguments passed to |
RasterBrick. One output mask layer for each input layer. If filename is specified, output file format is GeoTiff with unsigned integer data type.
mask_grids, overlay.
1 2 3 4 5 6 7 8 | # Generate masks of grid cells that satisfy C4-climate criteria
C4_mask <- intersect_masks(C4_temp_mask, precip_mask)
# Generate masks of grid cells that satisfy growing-season climate criteria
GS_mask <- intersect_masks(GS_temp_mask, precip_mask)
# Plot monthly growing-season masks
plot(GS_mask)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.