Monthly mean air temperature for 270 cities worldwide (CC-BY-4.0). 12 monthly normals + annual mean, derived from CHELSA v2.1 (1981-2010).
Project description
world-temperature-data
Monthly mean air temperature for 270 cities worldwide. Twelve monthly normals plus an annual mean, as a tiny zero-dependency package for both JavaScript and Python, with the raw CSV bundled.
Data by GeoRank.place — see the interactive temperature map. Licensed CC-BY-4.0.
Method
Mean monthly near-surface air temperature (°C) from CHELSA v2.1 climatological
normals (1981–2010), warped to a 0.05° grid and sampled per city. annualC is the
mean of the 12 months. Full sources in ATTRIBUTION.md.
Install
npm install world-temperature-data # JavaScript / TypeScript
pip install world-temperature-data # Python
Usage
JavaScript / TypeScript
import { byCity, byCountry, cities } from "world-temperature-data";
const lisbon = byCity("Lisbon", "PT");
lisbon.annualC; // e.g. 16.3
lisbon.monthly.jul; // July mean, °C
lisbon.warmestMonth; // "aug"
cities().length; // 270
Python
from world_temperature_data import by_city, by_country, cities
lisbon = by_city("Lisbon", "PT")
lisbon["annual_c"] # e.g. 16.3
lisbon["monthly"]["jul"] # July mean, °C
lisbon["warmest_month"] # "aug"
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) |
monthly |
object | { jan … dec } mean temperature in °C |
annualC / annual_c |
number | Mean annual temperature, °C |
warmestMonth / coldestMonth |
string | Extreme months (e.g. "aug", "jan") |
source |
string | Methodology label |
The raw CSV ships in the package (world_temperature_data/world-temperature.csv).
Pairs well with
sunshine-hours-by-city,
world-rainfall-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
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 world_temperature_data-0.1.0.tar.gz.
File metadata
- Download URL: world_temperature_data-0.1.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50be4f7ce394cc4420401fd94de553855441e52977378fbc93f6508a527eeb8c
|
|
| MD5 |
64d3bdb1bd25001233b7f4ba2dbb757f
|
|
| BLAKE2b-256 |
dc5edcebe7f969098f7586eb8d0c4b4af8da99c7e27efab741dca405c2cdb637
|
File details
Details for the file world_temperature_data-0.1.0-py3-none-any.whl.
File metadata
- Download URL: world_temperature_data-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb3f00c89a6c0914b5cd5359f14e07571e1d3d9f7445c7060bdb39b6300c9aad
|
|
| MD5 |
69373313c32d67eaee595c890412659f
|
|
| BLAKE2b-256 |
ea81671384cd3d22b49cc5d1fb63137a80a054ddd88cfa36c02208b59305a5e0
|