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.2.tar.gz (11.4 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.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: npdc_era5-1.0.2.tar.gz
  • Upload date:
  • Size: 11.4 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.2.tar.gz
Algorithm Hash digest
SHA256 bdf34279e36c234ccce274a29a550afc48252ff69d8d585981cae059cb7f7a3b
MD5 addfbd370ff9e184bf8c314d34693a39
BLAKE2b-256 4fee0c8aace8e2d0a5d6e3b00f9bbb5474baba6b26ec20044b3e40e6894070d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdc_era5-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac427579cc46d6018bcab18916a7a914f3b4fb1e52ea04a97eb1a7daff28fb97
MD5 62c638f62e8fdd15cae4c2d539238011
BLAKE2b-256 94cebb41d30b4cc5dfc689b9317f53a0e2430a6577fd89d8192121494fce6a8f

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