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.1.tar.gz (11.3 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.1-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: npdc_era5-1.0.1.tar.gz
  • Upload date:
  • Size: 11.3 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.1.tar.gz
Algorithm Hash digest
SHA256 97b248d830b6b22d3e84752b3586d60badec9fc7fc8df0f012041cf097deea8a
MD5 828025902d8c756e077e4371cb557173
BLAKE2b-256 708bd2903d449f903b89b9834c8221c071018886d8503542f855690a00629117

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npdc_era5-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d78e751d82f4ff57068e4d4cf398bfa51d2d50865d2c60afffc8b389c3ec6901
MD5 21eded6c567b033c77127dd33ad99ac5
BLAKE2b-256 5161e1b2b8e94bfe7921366a1c04fec5bfa3c71ad7c23714a8500f3383e8e838

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