# This bash-script reads the 2m temperature from ERA5 short-range forecasts files, crops the data to the largest target domain (see Dataset ID 1-3) and then performs a merging step with the ground truth and the persistence forecast data provided by from the postprocessing of a trained model (see prostprocess-step of workflow.)
indir=<path_to_era5_short_range_forecasts>/${yr}# directory where the ERA5-short range forecasts are located
indir_ref=<path_to_postprocessed_model> # directory where the results of a trained model are located (to get persistence forecast and ground truth data)
outdir=<path_to_output> # output directory
if[[!-d"${outdir}"]];then
mkdir${outdir}
fi
hh_s=6
hh_e=12
# additional parameters
hh_s=6 # start of lead time range in hours
hh_e=12 # end of lead time range in hours
declare-ahh_list=(18)
declare-ahh_list=(18)# initialization hour of ERA5 forecasts to evaluate (either 6 or 18)
for hh in${hh_list[@]};do
hh0=$(printf"%02d"${hh})
...
...
@@ -29,12 +34,13 @@ for hh in ${hh_list[@]}; do
done
done
# merge all ERA5 forecasts in monthly netCDF-files