bioclim_xt: Compute all 19 bioclimatic variables (vectorized, zero-copy...

View source: R/RcppExports.R

bioclim_xtR Documentation

Compute all 19 bioclimatic variables (vectorized, zero-copy bridge)

Description

A faster alternative to bioclim_cpp() that uses whole-array vectorized operations and maps R matrix memory directly onto C++ pointers (zero-copy on both input and output).

Usage

bioclim_xt(tas, tasmax, tasmin, pr, ncores = 1L)

Arguments

tas

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

tasmax

Numeric matrix (n_pixels x 12): monthly max temperature.

tasmin

Numeric matrix (n_pixels x 12): monthly min temperature.

pr

Numeric matrix (n_pixels x 12): monthly precipitation.

ncores

Integer: number of OpenMP threads (default 1).

Value

Numeric matrix (n_pixels x 19) with one column per variable (bio01..bio19), named accordingly. Rows with any NA input are returned as all-NA.


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