Code Monkey home page Code Monkey logo

era5-tools's Introduction

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).

era5-tools's People

Contributors

loicduffar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.