Skip to content

p-hss/consistency-climate-downscaling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generative climate model downscaling

Overview

This is the repository of the paper "Fast, scale-adaptive and uncertainty-aware downscaling of Earth system model fields with generative machine learning".

Alt text

Usage

Set paths to training data and hyperparameters in src/configuration.py. Some can be changed via the shell when executing the training run with:

python main.py \
    --name "my_model" \
    --n_epochs 50 \
    --batch_size 8 

Preprocessing

Download

The ERA5 training data can be downloaded here. The data is in hourly resolution and needs to be downloaded in individual files.

Data processing

For merging the files and computing the daily mean, I recommend using the Climate Data Operators. The files can then be merged using

cdo mergetime era5_hourly_* era5_hourly_merged.nc

The daily mean can be computed using

cdo daymean -shifttime,-1hour era5_hourly_merged.nc era5_daily_merged.nc

Regridding

In order to regrid the ERA5 data from the native resolution to the target resolution used in the paper use the regridding function implemented here.

Transformations

Other preprocessing steps such as transformations for standardization are implemeneted in the dataloader.

Tests

Run unit tests with

 python -m unittest discover tests/

References

The implementation is mostly based on the repositories:

as well as the papers:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors