Skip to content

Weather

This page summarizes the air temperature model used by ACE Weather.

Air temperature is simulated with the corrected SinExp model from Ref. [1], using a sine function during daytime and an exponential decay at night. The temperature T at hour h for the model is given below:

T(h)={Tmin⁡+(Tmax⁡−Tmin⁡)⋅sin⁡(π⋅(h−hr)L+2α)|hr≤h<hsτ+(Ts−τ)⋅exp⁡(−γ⋅h−hs24−L)|hs≤h<hr′ L=hs−hr α=hmax⁡−hr+hs2 τ=Tmin⁡′−Ts⋅exp⁡(−γ⋅hr′−hs24−L)1−exp⁡(−γ⋅hr′−hs24−L)

where Tmin⁡ and Tmax⁡ are the daily minimum and maximum temperatures, Ts is the temperature at sunset and Tmin⁡′ is the next morning’s minimum. hr is sunrise hour, hs is sunset hour, hmax⁡ is the hour of maximum temperature and L is day length. hr′ denotes the hour of the next sunrise. γ is the decay coefficient (Weather manager’s m_fACE_SinExp_Gamma). The peak hour hmax⁡ is interpolated from from the weather manager’s m_aACE_MonthlyAverageTemperatureAirMaxHours.

The baseline minimum and maximum temperatures are interpolated between the terrain’s monthly averages (Weather manager’s m_aACE_MonthlyAverageDailyTemperatureAirMins and m_aACE_MonthlyAverageDailyTemperatureAirMaxs). Overcast and random variation adjust these values:

ΔTmax⁡=Xmean−Xrange−λơ⋅ơ ΔTmin⁡=Xmean+Xrange+λơ⋅ơ

where ΔTmax⁡ and ΔTmin⁡ are the shifts that get added, ơ∈[0,2] is the estimated average overcast over the next 12 hours and λơ is the temperature factor for overcast (Weather manager’s m_fACE_OvercastTemperatureFactor). Overcast generally decreases the diurnal temperature range (i.e difference between daily maximum and minimum). Additional random samples Xmean and Xrange shift the mean and diurnal temperature range respectively. Both use first-order autoregressive noise, so successive samples are correlated:

Xn=ρ⋅Xn−1+ϵnX0∼𝒩(0,σ2) ϵn∼𝒩(0, σ2(1−ρ2))

where ρ is the autoregressive coefficient, ϵn is the innovation, σ is the standard deviation of the noise and 𝒩(μ,s2) denotes a normal distribution with mean μ and standard deviation s. The sampled temperature extrema are clamped to maintain a minimum diurnal temperature range (Weather manager’s m_fACE_MinDiurnalTemperatureRange).

The effective air temperature Teff(h,z) is calculated based on the altitude above sea level z in meters:

Teff(h,z)=T(h)−6.5 K⋅z1000 m

where T(h) is the SinExp-based temperature.

[1] T. Brandsma, G. P. Können, Int. J. Climatol. 2006, 26, 75–89.