bioclim_window_cpp: Compute bioclimatic variables over an arbitrary window of...

View source: R/RcppExports.R

bioclim_window_cppR Documentation

Compute bioclimatic variables over an arbitrary window of months

Description

Compute bioclimatic variables over an arbitrary window of months

Usage

bioclim_window_cpp(tas, tasmax, tasmin, pr, months, window = 3L, na_rm = FALSE)

Arguments

tas

Numeric matrix (pixels x 12): monthly mean temperature.

tasmax

Numeric matrix (pixels x 12): monthly maximum temperature.

tasmin

Numeric matrix (pixels x 12): monthly minimum temperature.

pr

Numeric matrix (pixels x 12): monthly precipitation.

months

Integer vector of 1-based month indices in the window.

window

Integer: length (months) of the internal rolling sub-window used for the BIO08-BIO19 variables. Must be >= 3 and <= length(months) for those variables to be non-NA.

na_rm

Logical: if TRUE, skip NA months.

Value

Numeric matrix (pixels x 19) with columns bio01..bio19.


xbioclim documentation built on Oct. 5, 2026, 5:08 p.m.