era5_tp_to_monthly_cpp: Aggregate ERA5-Land hourly total precipitation to monthly...

View source: R/RcppExports.R

era5_tp_to_monthly_cppR Documentation

Aggregate ERA5-Land hourly total precipitation to monthly total

Description

Sums hourly precipitation accumulations and converts from metres of water to kg m-2 month-1 (equivalent to mm/month), matching the CHELSA pr variable convention.

Usage

era5_tp_to_monthly_cpp(hourly, ncores = 1L)

Arguments

hourly

Numeric matrix (n_pixels x n_hours): hourly total precipitation in metres.

ncores

Integer: number of OpenMP threads (default 1).

Value

Numeric vector of length n_pixels: monthly total precipitation in kg m-2 (mm).


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