Skip to content

Notebooks Python to download and view ERA5 climatologic data, as well as to extract time series (hourly to monthly data on many atmospheric and land-surface parameters)

License

Notifications You must be signed in to change notification settings

loicduffar/ERA5-tools

Repository files navigation

ERA5-tools

Python scripts to download and view ERA5 climatologic data, as well as to extract time series (hourly to monthly data on many atmospheric and land-surface parameters)

How to AUTHORIZE the execution of the download code on Windows ? (only once)

https://cds.climate.copernicus.eu/api-how-to

  • If you do not have an account, please register on the CDS registration page

  • Log in

  • Copy the code with your personal key (see below), into the file "USER/.cdsapirc" (in Windows environment) (The file starting with a dot can be created using Notepad: "File> Save as> Type: All files> File name: .cdsfapirc"

    url: https://cds.climate.copernicus.eu/api/v2
    key: {uid}:{api-key}

Reanalysis ERA5-Land-T MONTHLY data (from 1950 to present)

Download, Mapping and time serie extraction (from Copernicus "Climate Data Store")

Fonctionel en python 311 mais solution non trouvée dans les cellules 3, 7 et 8 pour afficher les cartes hvplot AVEC CONTOUR ET FOND DE PLAN

Avec évolution de Février 2023 (A AMELIORER EVENTUELLEMENT) pour adaptation au format ERA5-Land-T (Timely updated, NearRealTime = nouvelle dimension 'expver')
https://confluence.ecmwf.int/display/CUSF/ERA5+CDS+requests+which+return+a+mixture+of+ERA5+and+ERA5T+data

https://confluence.ecmwf.int/display/CKB/ERA5-Land%3A+data+documentation

MONTHLY Precipitations, runoff, potential evaporation, evaporation, temperature and snow stock.

author: Loïc Duffar https://github.com/loicduffar

How to PROCEED ?

Run cells by order:

  • 1) Data download (only NetCDF format here, because more handy than GRIB format)
  • 1bis) IF the ERA5 file is already downloaded, start by the 2nd cell instead of the 1rst one
  • 2) Customization, initialization and display netCDF file infos
  • 3) Plot annual and monthly interannual average maps (and save to files)
  • 4) Plot monthly time series (for one pixel and for a possible polygon), and export them to excel file
  • 5) Annual maps animation OPTIONNAL
  • 6) Montlhy maps animation OPTIONNAL
  • 7) Plot Maps over 12 months for a specific year (and one month map with basemap) OPTIONNAL
  • 8) Elevation map OPTIONNAL

Reanalysis ERA5-Land HOURLY data (from 1950 to present)

Download, Mapping, daily/monthly aggregation and time serie extraction (from Copernicus "Climate Data Store")

HOURLY Precipitations, temperature, evaporation, runoff and other parameters.

author: Loïc Duffar https://github.com/loicduffar

How to PROCEED ?

Run cells in order :

  • 1) Data download (Download volume is limited by the server: you will have to adapt number of variables, the périod of time and the area and/or to split the request in several files)
  • 1bis) Edit and run the 2nd cell, instead of the 1rst one IF the ERA5 file is already downloaded
  • 2) Customization, initialization and display netCDF file infos
  • 3) Plot maps by hour/day/month and interannual average
  • 4) Plot and export dailly time serie for one pixel and for a possible polygon
  • 5) Animation maps by month, day and hour (OPTIONNAL)
  • 5bis) Animation maps by day and hour OVER A SELECTED PERIOD OF TIME. (OPTIONNAL: Use this cell instead of the one above if the navigation through the hourly data is difficult because of a file covering a very long duration; 10 years for example).

About

Notebooks Python to download and view ERA5 climatologic data, as well as to extract time series (hourly to monthly data on many atmospheric and land-surface parameters)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published