GUIDES

You do not need a lakehouse programme to own climate risk data. Analysis-ready open formats — Zarr/GeoZarr, GeoParquet, STAC — plus DuckDB’s spatial SQL let teams join assets to hazards on object storage, keep multiple resolution versions, and profile quality before numbers enter a decision.

Open Climate Risk Datalakes with DuckDB (and Friends)

· 4 min read

Open Climate Risk Datalakes with DuckDB (and Friends)

About this guide

Companion to our climate risk data quality topic. If public climate data is coarse and vendor scores disagree, how does a company hold climate and asset data in a form it can inspect, join, and version — without a multi-year lakehouse before the first flood layer lands.

Sources include our Slack → IndexBacklog LinkedIn export (open climate service / Zarr / Overture / open physical-risk threads) plus current DuckDB spatial practice. Literal “DuckDB” posts were rare in that backlog; the open lake pattern is not — DuckDB is the SQL engine many teams put on top.

What “open datalake” means here

For climate risk work, a useful lake is not “every NetCDF we ever downloaded.” It is:

  1. Assets you care about (sites, counterparties, supply nodes) with stable IDs and geometries
  2. Hazard / climate layers in analysis-ready form (not only vendor PDFs)
  3. Provenance — which GCM, scenario, downscaling, date, licence
  4. SQL or notebook access that portfolio and model-risk people can reproduce

Open building blocks showing up repeatedly in practitioner feeds:

  • ERA5 and other reanalyses as Zarr — e.g. Earth Data Hub mirrors and compressed ERA5 variants (CRA5) aimed at cutting petabyte friction
  • GeoZarr + STAC + openEO — Open Climate Service-style stacks that stop each provider’s API from being a one-off integration
  • Overture / building & place graphs — a structured geospatial grounding layer so asset joins are not hallucinated place names
  • Open physical-risk and flood code — from flood-forecasting repos to (vendor-adjacent) open commons claims; treat marketing carefully, keep the engineering pattern

DuckDB fits as the in-process analytical SQL layer: LOAD spatial; LOAD httpfs; then query GeoParquet or Parquet on S3/R2, or extract tables from pipelines that land Zarr → Parquet for the metrics you actually join.

A minimal company architecture

Object storage (S3/R2/GCS)
├── assets/           # GeoParquet: site_id, geometry, attributes
├── hazards/          # GeoParquet or partitioned Parquet by peril/scenario/year
├── climate/          # derived indicators (CDD, Rx1day, …) + provenance JSON
└── _qc/              # profile reports, null rates, bbox checks

DuckDB (laptop, CI, or small service)
→ spatial joins, portfolio aggregates, export to BI / model risk packs

You can start with a single region and two perils. The point is sovereignty and inspectability, not feature parity with a global vendor catalogue on day one. That matches the access half of our market-problem framing: cheaper open stacks will not erase unequal observation density, but they lower the cost of running honest multi-version analysis.

Layout rules that matter more than the logo on the engine

Practitioners hitting GeoParquet + DuckDB hard keep rediscovering the same cost model:

DoDon’t
Fewer, larger Parquet files; ZSTDThousands of tiny H3 shards on object storage
Partition on low-cardinality filters you actually use (country, peril, scenario)Partition on high-cardinality IDs
Bbox columns + spatial ordering (e.g. Hilbert) for geometryDump unsorted shapefile extracts as “the lake”
Always LOAD spatial before GeoParquet IOWonder why geometry became opaque blobs
Profile unfamiliar files first (nulls, CRS, date range, geometry validity)Join first, discover null keys in the board pack

FEMA-style public flood polygons → normalized GeoParquet → DuckDB RTree / spatial join is now a workshop-grade pattern, not a research prototype. Building-level surge demos that query GeoParquet on S3 with DuckDB instead of bulk-downloading rasters are the same idea: the lake is the files; DuckDB is the query planner.

How this connects to data quality

A lake that holds one proprietary score column named flood_risk recreates the vendor problem in your bucket. Prefer:

  • Multiple hazard versions side by side (vendor_a, open_hydro, internal_downscale_v3)
  • Explicit resolution and method fields (see preparing your own climate data)
  • QC artefacts: row counts, spatial coverage, comparison diffs when a layer refreshes

Open-Meteo / ECMWF open data / FAO open tools are good ingest sources; they are not a substitute for documenting transforms. RiskThinking’s “Climate Risk Commons” and similar open-source physical-risk announcements belong in the watchlist — useful if truly reproducible, but still subject to the same validation bar as any vendor (Jo Paisley / GARP divergence, Zillow / no public benchmark).

A 30-day path that stays honest

  1. Week 1 — Land assets as GeoParquet; pick one public hazard for your geography; write provenance JSON.
  2. Week 2 — DuckDB spatial join; produce a portfolio table with method columns, not a single score.
  3. Week 3 — Add a second climate lineage (different downscale or open product); diff rankings.
  4. Week 4 — Automate profile + schema checks in CI; document what the lake is not for (e.g. pricing CAT risk without a peril model).

If you need specialised modules later (defence-aware flood, adaptation CBA), our assessment software modules assume a data lake of this shape — not a folder of untitled TIFFs.