Skip to main content

Mean annual precipitation for 270 cities worldwide (CC-BY-4.0). Derived from CHELSA v2.1 (1981-2010), bias-corrected against GHCN-M stations.

Project description

world-rainfall-data

Mean annual precipitation for 270 cities worldwide. A tiny zero-dependency package for both JavaScript and Python, with the raw CSV bundled.

Data by GeoRank.place — see the interactive rainfall map. Licensed CC-BY-4.0.

Method

Annual precipitation (mm) from CHELSA v2.1 climatological normals (1981–2010), bias-corrected against ~25,000 GHCN-M v4 stations, sampled per city. Full sources in ATTRIBUTION.md.

Install

npm install world-rainfall-data      # JavaScript / TypeScript
pip install world-rainfall-data      # Python

Usage

JavaScript / TypeScript

import { byCity, byCountry, cities } from "world-rainfall-data";

byCity("Lisbon", "PT");   // { city: "Lisbon", countryIso2: "PT", annualMm: 665, ... }
byCountry("ES");          // every Spanish city
cities().length;          // 270

Python

from world_rainfall_data import by_city, by_country, cities

by_city("Lisbon", "PT")   # {"city": "Lisbon", "country_iso2": "PT", "annual_mm": 665, ...}
by_country("ES")          # every Spanish city
len(cities())             # 270

Data schema

Field Type Description
city string City name
countryIso2 / country_iso2 string ISO-3166 alpha-2 country code
lat, lon number Coordinates (decimal degrees)
annualMm / annual_mm number Mean annual precipitation, mm
source string Methodology label

The raw CSV ships in the package (world_rainfall_data/world-rainfall.csv).

Pairs well with

sunshine-hours-by-city, world-temperature-data, and georank — rank cities by weighted climate criteria. See it live at georank.place.

License

Data: CC-BY-4.0 © GeoRank.place. Attribution required — see ATTRIBUTION.md. Package code: MIT.

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

world_rainfall_data-0.1.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

world_rainfall_data-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file world_rainfall_data-0.1.0.tar.gz.

File metadata

  • Download URL: world_rainfall_data-0.1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for world_rainfall_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7bc3a55a17442575ab8abbb387e9b710eb3f2f33ceb3e68ce169106624eebd7f
MD5 6a0e1299b879b276b751c338ba75c47e
BLAKE2b-256 fbae4215671d613c480b660e132a50bbdfa9a69a232f21423f28e1d56e540d63

See more details on using hashes here.

File details

Details for the file world_rainfall_data-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for world_rainfall_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69630cd0a9470ac4462435ffa0739a8f734bd9dc0544761a0105b00157830d86
MD5 8912361fd172836dbf49184f318b61a8
BLAKE2b-256 20797b4bcfabe2405cdbb772a73da2f7c9bfeb6de6c36b026ab4c99904f7abeb

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