Calculation of the bio-climatic variables in three steps:
input are daily mean temperature (tavg), min temperature (tmin), max temperature (tmax), precipitation (pre), potential evapotranspiration (pet) and weekly soil water content (swc).
Remark: We use python package xarray. Unfortunately our HPC with slurm did not allow the parallel processing from dask we handled it to separate the large files in longitudinal chunks using .isel()
Following Order of processing applies:
- Calculation of bio-climatic variables in calculation/
- 88 realisations exist - we calculated variables for each realisations but omitted 18 during the processing
orchestrateCalculation.sh
callsstartSequentialCalculation.sh
callsreadData.py
callsutility/bioCalculation
- specifications in
orchestrateCalculation.sh
andutility/values.config
- Ensemble calculation into RCPs and their percentiles in ensemble/
orchestrateEnsemble.sh
callsstartSequentiellEnsemble.sh
callsreadEnsemble.py
callsutility/ensemble.py
- specifications in
orchestrateEnsemble.sh
- Combining the different longitudinal chunks in
calculation/
and calculation of temporal percentilesorchestrateCombine.sh
callscombineScript.sh
callscombineIterations.py
callsutility/combine.py
- specifications in
orchestrateCombine.sh
The folder utility/
contains helper functions in calculations.py
, a mask file mask.nc
for masking the data and rcp.py
which states the realisations for RCP ensemble combination.
For publication purpose we combined all data variables according to their specifications including temporal percentiles. Here we utilise the folder biovars/
start.sh
is the sbatch script to start following processing:stackAndRename.py
- stacks all combined temporal percentiles according to realisations, RCPs and temporal percentiles- old and new variable names are in renameVars.csv
testStack.py
checks, if this stacking was succesful by rastermath with single files
This code can not be run as the base variables can not be supplied - it rather is a verification of processing
Used packages are attached in requirements.txt