CLI to download a 10-years weather data from ERA5 and process it in reports
Project description
sharve-era5-request
CLI for downloading ERA5 single-level data and generating reports.
Install
pip install .
Or for local dev:
pip install -e .
Register for the ERA5 to get an API token
- If you do not have an account yet, please register https://cds.climate.copernicus.eu/
- If you are not logged in, please login
- Open your profile and copy API key
Configure (one time only)
weather configure --token paste_your_api_key_token
Additional config (if needed)
weather configure --token <UID:APIKEY> [--url https://ads.atmosphere.copernicus.eu/api]
Usage
Workflow overview:
weather download: fetch 2016-2025 ERA5-Land point time-series (fixed variable set) for one location.weather save: write the downloaded time-series for a location to CSV.weather report: generate an HTML report for a location.weather list: list downloaded locations.
Commands
Download fixed variables for a point (2016-2025)
weather download --name Gothenburg --lat 57.7 --lon 11.9
Notes: downloads ERA5-Land time-series for the fixed variables into .weather_era5/gothenburg.zip (zip archive containing CSV files). If the file exists, download is skipped.
Save point data to CSV
weather save --name Gothenburg --output ./gothenburg.csv
This reads the downloaded point dataset for the location and writes a CSV with all variables aligned on time.
Generate a report
weather report --name Gothenburg
Produces an HTML report with one summary table for all variables and per-variable histogram and climatology line plots.
List downloaded locations
weather list
Options (common)
--name: label used for the dataset filename (<name>.zip)--lat,--lon: latitude/longitude for downloads--output: optional output path forsave; defaults to.weather_era5/<name>.csv
Notes
- Datasets are stored in
.weather_era5/under your home directory by default. - Downloads are global (1h cadence) and can take several minutes per variable/year.
saveandreportdo not trigger downloads; rundownloadfirst for the variables/years you need.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weather_cli_era5-2026.1.19a0.tar.gz.
File metadata
- Download URL: weather_cli_era5-2026.1.19a0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08b11ee05b92ec81f4b0e61737ff7dca2a22d810430af2cf5a2ee40220419c2e
|
|
| MD5 |
a6a169cda4acac651590f8fc701cceef
|
|
| BLAKE2b-256 |
0633e85538a63fd70a15d9b03bef04b0b0a7791317ba189d1110298d0be2b48d
|
File details
Details for the file weather_cli_era5-2026.1.19a0-py3-none-any.whl.
File metadata
- Download URL: weather_cli_era5-2026.1.19a0-py3-none-any.whl
- Upload date:
- Size: 21.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bc4ce9b0a7a5d444bdc6533c31ba9fb894805bbe465400410644ce2ff0229a2
|
|
| MD5 |
9d67467eddc1c069a4ba602d176752af
|
|
| BLAKE2b-256 |
d6f0d7ab5d672883ea1fd334aa6182fa2d6e878fe38062088bbdd52214fc580c
|