Wind downscaling over Switzerland project (EPFL/UNIBE)

Datasets:

Relevant Literature:

Usage

Prerequisites

Installing dependencies

conda install -y -c conda-forge gdal tensorflow xarray numpy=1.19.5 pandas pysftp cdsapi elevation rasterio dask python-dotenv

Install this package:

pip install -U git+https://github.com/OpheliaMiralles/wind-downscaling-gan.git

Downscaling winds

  • Download ERA5 low-resolution winds for a specific area and time range using the function download_ERA5 from the downscaling.data package
  • Download DEM data, for example using:
eio --product SRTM3 clip -o {dem_data_dest_folder} --bounds -4.96 42.2 8.3 51.3
  • Downscale wind fields for a specific date and area of interest:
downscale --era {ERA5_data_folder} --dem {dem_raster.tif} --date 20160401 --lon="-1:3" --lat 48:50 -o downscaled_winds.nc

For a more hands on approach, you can also use the following python notebook https://github.com/OpheliaMiralles/wind-downscaling-gan/blob/master/src/downscaling/wind_downscaling.ipynb where visual representation of the downscaled maps is provided.