This repository contains all the code needed to generate the intermediate dataset (Interactive Atlas Dataset) used in the Interactive Atlas. For simplicity, the full workflow is split up in four main scripts which undertake independent tasks. In a nutshell:
01_index_calculation.R
computes a number of climate indices (see the table included in the own script) from CMIP5 (and/or CMIP6) model outputs. Due to the particularities of some of the indices available, two more companion scripts are also delivered:01_index_calculation_SPI.R
and01_index_calculation_bias_corrected.R
. Whereas the former is thought for SPI-6, the latter is used for those indices which are based on absolute thresholds (Frost Days, TX35 and TX40).02_interpolation.R
interpolates the outputs (NetCDF files) produced by01_index_calculation.R
using Conservative Remapping (the approach used in EURO-CORDEX for CORDEX data). The folder called bash-interpolation-scripts contains some bash scripts which are required by02_interpolation.R
.03_ensemble_building.R
creates a multi-model ensemble building on the interpolated information generated by02_interpolation.R
, returning NcML files.04_map_figures.R
generates the final figures (maps) from the NcMLs returned by03_ensemble_building.R
.
Please be aware that these four scripts must be run in the above order. All of them build upon the climate4R framework.
- 01_index_calculation_bias_corrected.R
- 01_index_calculation.R
- 01_index_calculation_SPI.R
- 02_interpolation.R
- 03_ensemble_building.R
- 04_map_figures.R
- bias-correction / bias_correction_isimip3.R
- hatching-functions / hatching-functions.R
- bash-interpolation-scripts / AtlasCDOremappeR_CMIP6_Omon.sh
- bash-interpolation-scripts / AtlasCDOremappeR_CMIP.sh
- bash-interpolation-scripts / AtlasCDOremappeR_CORDEX / AtlasCDOremappeR_CORDEX.sh
- bash-interpolation-scripts / AtlasCDOremappeR_CORDEX / grid_bounds_calc.py