Skip to content

feat: Add an interactive Zarr weather forecast example for Europe - #23

Merged
dzole0311 merged 15 commits into
mainfrom
feat-build-zarr-example
Sep 21, 2026
Merged

dzole0311 merged 15 commits into
mainfrom
feat-build-zarr-example

Conversation

@dzole0311

@dzole0311 dzole0311 commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Closes: #22

Adds a map showing temperature forecasts across Europe for the next two weeks, using ECMWF ensemble data from dynamical.org.

The way this works is the browser (via deck.gl-raster, specifically the zarr module) reads the data directly from the Zarr store and loads / renders the streamed chunks. Users can then:

  • pick a date or location
  • play through the forecast and see how much the 51 forecast scenarios / ensemble members agree
  • see the local chart that shows the temperature range

A few notes about the data loading and rendering:

  • The browser fetches chunks that cover only Europe directly from the dynamical.org data store
  • Each chunk thats fetched contains multiple forecast times and all 51 ensemble members. Then, we calculate their average temperature and how much they differ
  • The results we get are in memory, so changing the date or switching between temperature and spread reuses the downloaded data
  • deck.gl-raster handles rendering the raster on the map and turns the values into colors (using built-in rendering modules)

I tested it across light and dark mode and mobile support + both fullscreen view and normal view.

Screen.Recording.2026-09-15.at.12.32.55.mov
Screen.Recording.2026-09-15.at.12.32.15.mov

Dark mode

Screen.Recording.2026-09-15.at.12.44.02.mov

Comment thread docs/examples/forecast/data.ts Outdated
@@ -0,0 +1,119 @@
import * as zarr from "zarrita";

export const STORE_URL = "https://s3.us-west-2.amazonaws.com/us-west-2.opendata.source.coop/dynamical/ecmwf-ifs-ens-forecast-15-day-0-25-degree/v0.1.0.zarr";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dzole0311 I think I'd like to see if each of these costants can come from the Python side, potentially to over-ride defaults.

This overall looks fantastic to me - I think I'd just like to show how someone in a python notebook can have more flexibility on the python side in defining what's being shown and how, etc.

Do you think it's feasible to do one pass and look for things that can / should be over-ridable, and define the interface to be able to do that on the Python side when instantiating the widget?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some Python options (locations, map bounds, forecast length, starting day, color ranges and palettes + plus the zarr store url); the defaults will still work without any config. Also added some notes that other stores need to match this ECMWF dataset’s layout if they want to reuse the example.

@dzole0311

Copy link
Copy Markdown
Member Author

Sorry for the large diff. Most of it comes from package-lock.json with about 2.3k lines added. I also experimented with some custom styling for the example (using the existing theme tokens where possible).

@dzole0311
dzole0311 merged commit ab0f9f0 into main Sep 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Zarr + deck.gl-raster example

2 participants