Compare climate normals and comfortable days
compare_climateMonthly climate normals from ERA5 reanalysis (2015-2024) via Open-Meteo: mean daily maximum and minimum temperature, average monthly rainfall, and a count of comfortable days. Pass city (slug) or country (alpha-2) for one place's twelve months — a country answers through a named representative city, because a country does not have one climate. Otherwise cities are ranked by comfortable days, for a single month (1-12) or across the year; the seasonal question is the one people actually have, and an annual total hides it. A comfortable day has a maximum between 18 and 27 C with under 1 mm of rain — a STATED PREFERENCE, not an objective measure: it is temperate-biased and scores hot destinations low on terms they did not agree to, so mean maximum and rainfall travel with every row for callers who want to rank on those instead. ERA5 is reanalysis rather than station observation, which makes it complete and comparable across countries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City slug (e.g. "lisbon"). Returns that city's twelve months. | |
| limit | No | Return at most this many cities. | |
| month | No | Rank a single month. Omit to rank on the whole year. | |
| country | No | ISO alpha-2. Returns the representative city's months, naming which city. | |
| minComfortDays | No | Filter: minimum comfortable days in the ranked window. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| city | No | ||
| rows | No | ||
| month | No | ||
| updated | No |