This package contains the necessary code and data for reproducing all results in the paper "Simulation and evaluation of local daily temperature and precipitation series derived by stochastic downscaling of ERA5 reanalysis", available at https://arxiv.org/abs/2507.01692.
The scripts used for creating all relevant results and figures are available in the exec/
folder. This folder contains five scripts:
plot_station_data.R:
This script is used for creating a map that showcases all available GSOD weather stations that we use for performing our downscaling.downscale_precipitation.R:
This script trains the precipitation downscaling models, performs leave-one-out cross-validation for all relevant precipitation weather stations, and summarises the results of the cross-validation study using a collection of different figures.downscale_temperature.R:
This script trains the temperature downscaling models, performs leave-one-out cross-validation for all relevant temperature weather stations, and summarises the results of the cross-validation study using a collection of different figures.cprcm_precip_comparison.R:
This script repeats the model evaluation fromdownscale_precipitation.R, but for a smaller spatial domain, and by comparing our stochastic downscaling model to a convection-permitting regional climate model (CPRCM) instead of ERA5.cprcm_temp_comparison.R:
This script repeats the model evaluation fromdownscale_temperature.R, but for a smaller spatial domain, and by comparing our stochastic downscaling model to a convection-permitting regional climate model instead of ERA5.
The folder raw_data/ contains all relevant weather station data, ERA5 data, CPRCM data and DEM data used for
performing our downscaling. We ask that you please reference the paper "Simulation and evaluation of local daily temperature and precipitation series derived by stochastic downscaling of ERA5 reanalysis" if you use this data.