View source: R/bioclim_window.R
| bioclim_window | R Documentation |
Computes the 19 standard bioclimatic variables over a user-defined subset of months. This is useful when a species' relevant season does not coincide with fixed quarters (e.g. eBird Status & Trends breeding windows).
bioclim_window(
tas,
tasmax,
tasmin,
pr,
months = NULL,
start = NULL,
end = NULL,
window = 3L,
na.rm = FALSE,
...
)
tas |
Numeric vector (length 12), matrix (pixels x 12), SpatRaster with 12 layers, or BioclimData. |
tasmax |
Same form as |
tasmin |
Same form as |
pr |
Same form as |
months |
Integer vector of 1-based months in the window, e.g.
|
start, end |
Optional character strings in |
window |
Integer: length of the internal rolling sub-window used
to compute |
na.rm |
Logical. If |
... |
Not currently used. |
The base variables (bio01..bio07, bio12..bio15) are computed
directly over the selected months. The rolling variables
(bio08..bio11, bio16..bio19) are computed over the best
contiguous window-month period that is fully contained in months.
If length(months) < window or no such contiguous period exists,
those columns are NA.
Vector input: a named numeric vector of length 19 (bio01..bio19).
Matrix / BioclimData input: a numeric matrix (pixels x 19).
SpatRaster input: a 19-layer SpatRaster.
bioclim_rolling() for rolling optimal windows over the full
year with a free window length.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.