data-geo / CHIRPS rainfall · also: WorldPop, LandScan Mosaic, night lights
CHIRPS rainfall
The Climate Hazards Center's CHIRPS v3 monthly rainfall: one global grid a month, 0.05° (about 5.5 km), land from 60° N to 60° S, January 1981 onwards. The files, as the producer publishes them, and an API for rainfall over any shape against a 1991–2020 normal.
Why a copy. The Climate Hazards Center already publishes these files as Cloud-Optimized GeoTIFFs and its server answers range requests. It sends no CORS header, though, so a web page cannot read them (measured 7 November 2026: no Access-Control-Allow-Origin, preflight refused with 405). Here the same bytes answer from any origin, under a path that does not change, with a manifest and STAC.
Daily and dekadal CHIRPS v3 are not copied: WFP already serves them as COGs, with CORS, at source.coop/wfp.
Ask
curl -X POST "https://data-geo.baobabtech.app/v1/chirps/polygon?months=2026-07..2026-09" \
-H "content-type: application/json" -d @district.geojson
→ { "months": [ { "month": "2026-07", "rainfall_mm": …, "normal_mm": …, "anomaly_mm": …, "percent_of_normal": … }, … ],
"total": { "months": 3, "rainfall_mm": …, "normal_mm": …, "percent_of_normal": … }, … }
curl "https://data-geo.baobabtech.app/v1/chirps/point?lon=36.8219&lat=-1.2921&month=2026-09"
→ { "rainfall_mm": 18.90, "normal_mm": 20.94, "anomaly_mm": -2.03, "percent_of_normal": 90.3, … }
| Field | Means |
|---|---|
rainfall_mm | Mean rainfall total of the month over the shape, weighted by area |
normal_mm | The 1991–2020 normal for that calendar month over the same cells. Computed by data-geo, not the CHC: the mean of the 30 monthly totals. Every month from 1981 to now is compared with it. |
anomaly_mm, percent_of_normal | Rainfall minus normal, and rainfall as a percentage of normal |
total | With months= (up to 120): the sums of the monthly figures, and their anomaly and percentage |
area_km2, area_no_value_km2 | Area with a value, and without (sea, outside 60° N–60° S) |
How a shape is read. A 100 m cell counts when its centre is inside the shape, as for every dataset here, and takes the rainfall of the 5 km CHIRPS cell that contains it: each CHIRPS cell is exactly 60 × 60 of those cells, edge on edge, so nothing is resampled and a district smaller than one CHIRPS cell still gets a value. The answer equals a GDAL cell-by-cell count (to 4 × 10⁻¹⁴). Rainfall only: the answer carries no population; to weigh rainfall by people, call a population endpoint for the same shape and join them yourself.
Tables per administrative unit
Every geoBoundaries unit (ADM0, ADM1, ADM2), every month from 1981, one Parquet file per year: https://data-geo.baobabtech.app/chirps/v3.0/admin/{YYYY}.parquet, with units.parquet beside it. Each row is what the polygon call answers for that unit's boundary, computed in advance.
SELECT month, shape_name, rainfall_mm, percent_of_normal FROM 'https://data-geo.baobabtech.app/chirps/v3.0/admin/2026.parquet' WHERE iso3 = 'ETH' AND level = 'ADM2' ORDER BY month; -- DuckDB, read by range
Files
https://data-geo.baobabtech.app/chirps/v3.0/monthly/chirps-v3.0.{YYYY}.{MM}.tif
- Byte for byte the CHC's monthly COG (
monthly/global/cogs/chirps-v3.0.YYYY.MM.cog): only the extension differs. SHA-256 of each file in the manifest; STAC at chirps/v3.0/monthly/stac/catalog.json; the newest month in chirps/latest.json. - Rainfall total for the month, mm. float32, EPSG:4326, 7200 × 2400 cells, LZW, 512 × 512 tiles, overviews 2–16 (the CHC's, averaged), about 30 MB a month.
- −9999 means no value (sea, and land outside the grid's coverage). The files do not declare it as nodata: set it yourself.
- Updated monthly: the CHC posts a month around the middle of the next one.
- The normals:
https://data-geo.baobabtech.app/chirps/v3.0/normals/1991-2020/chirps-v3.0.normal-1991-2020.{MM}.tif(computed by data-geo; float32 mm, nodata −9999 declared).
Read it
import rasterio
from rasterio.windows import from_bounds
url = "https://data-geo.baobabtech.app/chirps/v3.0/monthly/chirps-v3.0.2026.09.tif"
with rasterio.open(url) as d: # Kenya's box: reads a few tiles, not the file
a = d.read(1, window=from_bounds(33.9, -4.7, 41.9, 5.0, d.transform))
a[a == -9999] = float("nan")
// In a browser (geotiff.js): range reads, allowed from any origin
const tiff = await GeoTIFF.fromUrl("https://data-geo.baobabtech.app/chirps/v3.0/monthly/chirps-v3.0.2026.09.tif");
const img = await tiff.getImage();
const [x0, y0] = img.getOrigin(), [rx, ry] = img.getResolution(); // Kenya's box, in cells
const win = [33.9, 5.0, 41.9, -4.7].map((v, i) => Math.round((v - (i % 2 ? y0 : x0)) / (i % 2 ? ry : rx)));
const [mm] = await img.readRasters({ window: win }); // -9999: no value
GDAL: gdal_translate -projwin 33.9 5.0 41.9 -4.7 -a_nodata -9999 /vsicurl/https://data-geo.baobabtech.app/chirps/v3.0/monthly/chirps-v3.0.2026.09.tif kenya.tif
Licence and citation
The CHC: "CHIRPS3 is in the public domain, as registered with Creative Commons, and is licensed under a Creative Commons Attribution 4.0 International License" (chc.ucsb.edu/data/chirps3). Credit the Climate Hazards Center and cite:
- Climate Hazards Center Infrared Precipitation with Stations version 3 (CHIRPS3) Data Repository: doi:10.15780/G2JQ0P (2025).
- Funk, C., Peterson, P., Harrison, L., et al. (2026). The Climate Hazards Center Infrared Precipitation with Stations, Version 3. Sci Data 13, 718. doi:10.1038/s41597-026-07096-4
Not the Climate Hazards Center's service and not endorsed by it. Only the final monthly series; preliminary, pentad, dekadal, daily and multi-month products are at data.chc.ucsb.edu.