| era5_to_monthly_cpp | R Documentation |
Converts hourly 2-m temperature and total precipitation to the four CHELSA-compatible monthly climate variables in a single parallel pass.
era5_to_monthly_cpp(
hourly_t2m,
hourly_tp,
n_days,
to_celsius = FALSE,
ncores = 1L
)
hourly_t2m |
Numeric matrix (n_pixels x n_hours_t2m): hourly 2-m temperature in Kelvin. n_hours_t2m must equal 24 * n_days. |
hourly_tp |
Numeric matrix (n_pixels x n_hours_tp): hourly total
precipitation in metres. n_pixels must match |
n_days |
Integer: number of days in the month. |
to_celsius |
Logical: convert temperatures from Kelvin to Celsius? Default FALSE. |
ncores |
Integer: number of OpenMP threads (default 1). |
A named list with four numeric vectors of length n_pixels:
tas, tasmax, tasmin, pr.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.