Description Usage Arguments Value See Also Examples
Calculates the proportion of grasses with C4 photosynthetic pathway based on climate data (and, optionally, vegetation "greenness" weights). Output layer represents the C4 proportion of grasses in each grid cell, based on ratio of C4-favorable months to growing-season months.
1 | calc_C4_ratio(C4.mask, GS.mask, veg.index = NULL, filename = "", ...)
|
C4.mask |
Raster* object. Each layer represents C4 climate mask for
given temporal window, may be result of |
GS.mask |
Raster* object. Each layer represents growing season climate
mask for given temporal window, may be result of |
veg.index |
Raster* object. Optional layers to weight C4 grass
proportion based on vegetation "greenness" metric (e.g., a vegetation
index). Must match temporal window and number of layers as |
filename |
Character. Optional output root filename passed to
|
... |
Other arguments passed to |
Raster layer. Proportion of grasses with C4 photosynthetic pathway.
intersect_masks, count_months, overlay.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Calculate C4 ratio for North America, based on climate data only
# C4 and Growing Season (GS) climate masks are results of mask_climate()
C4_ratio <- calc_C4_ratio(C4_mask, GS_mask)
# Calculate C4 ratio, based on climate and monthly vegetation greenness
# Load monthly vegetation index for North America
data(ndvi_NA)
C4_ratio_vi <- calc_C4_ratio(C4_mask, GS_mask, veg.index = ndvi_NA)
# Plot climate-based C4 vegetation ratio
plot(C4_ratio)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.