This is a collection of scripts for downloading weather and climate data and preprocessing them accordingly.
Create environment and install required packages
mamba create -n clidaEnv
mamba env update -n clidaEnv -f condaenv.yml
ERA5 data are downloaded via the Climate Data Store (CDS) Application Program Interface (API). Follow the steps on their how-to-api.
- Copy the
dwnld_config_template.py
todwnld_config.py
- Change the
"raw_data_dir"
in thedwnld_config.py
to your preferred location - Select only the part in the config which you need and adapt it to your needs
- Run your
download_<product>.py
with python. Keep in mind that thedwnld_config.py
is in the same directory
To run scripts on the slurm queueing system, I've provided a sample script in example_scripts/submit_to_slurm.sbatch
which can be started using sbatch
.
- WeatherBench
- CPCP, TRMM
- all final output files should be saved to
climate_data/[model or data product name]
- all final output files should be in NetCDF format
- all final output files should be in a one-file-per-variable format, with the variable in the file called the same as the
[variable shorthand]
in the filename (below)
Furthermore, please document your code as well as you can. Additionally, when you can, add links to documentation on how to access the datasets, or any additional tools that are needed (for example, ECMWF's API).