| era5_t2m_to_monthly_cpp | R Documentation |
Converts an hourly temperature matrix to monthly mean temperature (tas), monthly mean of daily maxima (tasmax), and monthly mean of daily minima (tasmin), following the CHELSA variable convention.
era5_t2m_to_monthly_cpp(hourly, n_days, to_celsius = FALSE, ncores = 1L)
hourly |
Numeric matrix (n_pixels x n_hours): hourly 2-m temperature. Column-major layout. n_hours must equal 24 * n_days. |
n_days |
Integer: number of days in the month. |
to_celsius |
Logical: if TRUE, convert Kelvin to Celsius (default FALSE, output in Kelvin matching CHELSA convention). |
ncores |
Integer: number of OpenMP threads (default 1). |
A named list with three numeric vectors of length n_pixels:
tas, tasmax, tasmin.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.