LandscapeDNDC 1.37.0
Loading...
Searching...
No Matches
Temporal aggregation of climate data

Climate data are given with \( R_r \) records per day (time = "YYYY-MM-DD/Rr" in the climate input), the simulation runs with \( R_k \) time steps per day. Independent of \( R_r \) and \( R_k \), the models always receive two climate records: the record of the current time step and the record of the current day (daily record). Both are provided by the input library, which aggregates records that are finer than needed and synthesizes (see Climate synthesizer) records and items that are missing. \( R_r \) and \( R_k \) are assumed to be integer multiples of each other; data coarser than daily are not supported.

Which records are aggregated

Data vs. simulation Time step record Daily record
\( R_r = R_k = 1 \) data data
\( R_r = 1 < R_k \) synthesized from the daily record data
\( R_r = R_k > 1 \) data aggregated from the \( R_r \) data records of the day
\( R_r > R_k \) aggregated from \( R_r / R_k \) data records aggregated from the \( R_k \) time step records of the day
\( 1 < R_r < R_k \) synthesized from the daily record aggregated from the \( R_r \) data records of the day

Note for \( R_r > R_k > 1 \) (e.g., half-hourly data and hourly time steps): the daily record is aggregated in two steps (data to time step, time step to day). Note for \( 1 < R_r < R_k \) (e.g., 6-hourly data and hourly time steps): the sub-daily course of the data is not used. The data are aggregated to daily records, from which the time step records are synthesized.

After aggregation, daily items that are not given by sub-daily data but can be derived from them are derived (Daily minimum and maximum temperature, Vapour pressure deficit and relative humidity). All items that are still missing in the time step record or in the daily record are then synthesized (Climate synthesizer).

Aggregation methods

Each item of a climate record has its own aggregation method (CLIMATE_DATAFILTER_LIST):

Item Method Remark
press arithmetic mean
grad arithmetic mean including zeros, i.e., the daily value is the mean over 24 h
lrad arithmetic mean of non-zero values zeros are treated as missing values
prec sum
tavg arithmetic mean
tmax maximum of the tmax values of the data records (not of tavg)
tmin minimum of the tmin values of the data records (not of tavg)
rh arithmetic mean
vpd arithmetic mean
wind arithmetic mean

Missing values

Missing values (-99.99) are excluded from the aggregation. If all values of an aggregation period are missing, the aggregated value is missing and synthesized afterwards.

  • Mean: mean of the valid values. With gaps, the two-step aggregation ( \( R_r > R_k > 1 \)) gives the unweighted mean of the time step means.
  • Sum: sum of the valid values. Gaps are not compensated, i.e., they reduce the sum. Sub-daily precipitation: if some, but not all values of a day are missing, the missing values are taken as zero before the aggregation, so that the time steps add up to the daily sum, and a warning is logged (first five days only). Days without any precipitation value are synthesized as a whole. (Until 2026-11-30 the missing time steps were synthesized from the daily sum of the available values, i.e., this precipitation was counted twice.)
  • Mean of non-zero values: if all values are zero, the aggregated value is missing.
  • Minimum, maximum: of the valid values (until 2026-11-29 the minimum was missing if the first value of the aggregation period was missing).

Global radiation

Daily global radiation is the mean over the whole day (24 h) including the night. All parts of the model use this definition:

  • the synthesizer distributes daily global radiation \( G \) over the daylight hours such that the sub-daily values integrate to \( 24 \cdot G \) (Global radiation),
  • missing daily global radiation is estimated from the daily extraterrestrial radiation, which is a mean over 24 h,
  • potential evapotranspiration (Penman, Penman-Monteith, Priestley-Taylor), PnET and the daily diffuse fraction of radiation use the daily value as mean over 24 h.

Accordingly, to prepare daily climate data from sub-daily measurements, use the arithmetic mean of the radiation of all time steps of the day including the time steps with zero radiation.

Note: until 2026-11-28, sub-daily global radiation was aggregated with the mean of the non-zero values, i.e., the mean over the daylight hours. For sub-daily climate data, the daily value was therefore too high by 24 h / daylength (annual mean at 51 N: 1.7, more in winter than in summer) and, for the two-step aggregation, depended on the simulation time step. Simulations with daily climate data were not affected.

Daily minimum and maximum temperature

Daily minimum and maximum temperature are aggregated from the items tmin and tmax of the data records. If sub-daily data do not provide tmin or tmax, the daily minimum or maximum is the minimum or maximum of the sub-daily mean temperatures (tavg) of the day, provided that at least half of the records of the day have a valid tavg.

Otherwise, and for daily data without tmin and tmax, the daily values are synthesized from the daily mean temperature \( T_{avg} \) (in oC):

\[T_{max} = 1.4 \cdot T_{avg}, \quad T_{min} = 0.6 \cdot T_{avg} \qquad (T_{avg} > 0) \]

\[T_{max} = 0.6 \cdot T_{avg}, \quad T_{min} = 1.4 \cdot T_{avg} \qquad (T_{avg} \le 0) \]

The synthesized daily temperature range is thus \( 0.8 \cdot |T_{avg}| \) and vanishes at 0 oC.

Note: until 2026-11-29 the synthesized values were also used for sub-daily data without tmin and tmax, i.e., the sub-daily course of tavg was not used.

Vapour pressure deficit and relative humidity

Saturation vapour pressure is a nonlinear function of temperature. Therefore, the daily mean of the vapour pressure deficit is not the deficit calculated from the daily means of temperature and relative humidity (at DE_gebesee the latter is 12 % lower). If sub-daily data provide relative humidity but no vapour pressure deficit:

  • the vapour pressure deficit of a time step is calculated from temperature and relative humidity of that time step,
  • the daily vapour pressure deficit is the mean of the deficits calculated for each data record of the day (at least half of the records of the day must be valid).

If sub-daily data provide vapour pressure deficit but no relative humidity, relative humidity is derived accordingly.

Note: until 2026-11-29 the daily vapour pressure deficit was calculated from daily mean temperature and daily mean relative humidity, and the deficit of a time step from the resulting vapour pressure of the day (sub-daily relative humidity was not used and the deficit of a time step could be negative).

Implementation

  • aggregation methods: common/datafilters (filter-average, filter-average-nonzero, filter-sum, filter-minimum, filter-maximum)
  • assignment of the methods to the record items: CLIMATE_DATAFILTER_LIST in scientific/climate/climatetypes.cpp
  • selection of the records to aggregate and to synthesize: io/data-provider/isynths/shared/isynth-streamdata-read.cpp
  • gaps in sub-daily precipitation: iproc_isynthesizer_climate_t::precipitation_gaps_, daily items derived from sub-daily data: iproc_isynthesizer_climate_t::daily_from_subdaily_, both in io/data-provider/isynths/isynth-climate.cpp