Skip to main content

Interactive CLI to discover, download, and quality-check ERA5 reanalysis data from the Copernicus Climate Data Store.

Project description

ERA5 CLI

Interactive command-line tool to discover, download, and quality-check ERA5 reanalysis data from the Copernicus Climate Data Store.

Developed at the National Polar Data Center (NPDC), National Centre for Polar and Ocean Research (NCPOR), Ministry of Earth Sciences, Government of India.

Installation

pip install era5-cli

Prerequisites

Register at cds.climate.copernicus.eu and create ~/.cdsapirc:

url: https://cds.climate.copernicus.eu/api
key: YOUR_UID:YOUR_API_KEY

Usage

era5

The tool will interactively walk you through:

  1. Dataset selection — dynamically fetched from the CDS catalogue (8 core ERA5 datasets)
  2. Variable selection — full list pulled live from the API (e.g., 262 variables for single-levels)
  3. Spatial coverage — global or custom bounding box
  4. Temporal range — start/end dates
  5. Time of day — noon, all 24 hours, or custom
  6. Output — choose directory and filename

After download, automatic quality control checks for:

  • Missing data (NaN values)
  • Physical bounds (temperature, pressure, wind speed)

Features

  • Dynamic discovery — datasets and variables are fetched live from the CDS API
  • 7-day local cache — subsequent launches are instant (~/.era5_cli_cache.json)
  • Hardcoded fallback — works offline with a built-in variable list + warning
  • Search & range selection — type search wind or 1-5,10,15 when picking variables
  • Quality control — automatic physical-bounds checking on downloaded NetCDF files
  • File summary — prints min/max per variable after download

Available Datasets

Dataset Variables
ERA5-Land hourly 60
ERA5-Land monthly means 60
ERA5-Land hourly time-series 19
ERA5 pressure levels hourly 16
ERA5 pressure levels monthly means 16
ERA5 single levels hourly 262
ERA5 single levels monthly means 260
ERA5 single levels hourly time-series 21

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npdc_era5-1.0.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

npdc_era5-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file npdc_era5-1.0.0.tar.gz.

File metadata

  • Download URL: npdc_era5-1.0.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for npdc_era5-1.0.0.tar.gz
Algorithm Hash digest
SHA256 055df3435da158d49bdefcc91facdf4113542a54b00e332abae82cf19edb7be0
MD5 41290f2857f12709131d7bd51c06ee32
BLAKE2b-256 f8aea8ccf1e40cc1a1c9fcfb479725af973f64267c2936fdc2a2ea5215b1121d

See more details on using hashes here.

File details

Details for the file npdc_era5-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: npdc_era5-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.5

File hashes

Hashes for npdc_era5-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d637905c1256b74fb8d9f861e2d030d51642b7d7d600f50e3d68388ccf42046
MD5 e0cc4ed8b947179c5a5c6acea6ce157e
BLAKE2b-256 a684f9c06d59c04c418d6b0b065898202bd679694e7b51fb1ccabb56445a45d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page