Repository navigation
feat: Zarr temporal animation - #445
Merged
Merged
Conversation
Design for visualizing ECMWF IFS ENS forecast data via an animated Texture2DArray pipeline, including planned ZarrLayer refactor to generalize the getTileData/renderTile contract and add a `selection` prop for non-spatial dimension indexing. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ontract BREAKING CHANGE: ZarrLayer no longer ships a default ImageData pipeline. Callers must provide getTileData and renderTile. Adds required 'selection' prop and optional 'metadata' override. zarr-sentinel2-tci example migrated to the new API. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… upload Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Bumps workspace zarrita to ^0.7 across deck.gl-zarr, geozarr, and zarr-sentinel2-tci to avoid a structural version mismatch with the new ECMWF example. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
kylebarron
commented
Apr 20, 2026
kylebarron
commented
Apr 20, 2026
kylebarron
commented
Apr 20, 2026
Comment on lines
+44
to
+56
| // Accept the spec's "y"/"x" (case-insensitive) as well as the common | ||
| // CF-style names "latitude"/"longitude". Matching is purely label-based; | ||
| // positional inference is not used. | ||
| const Y_LABELS = new Set(["y", "latitude", "lat"]); | ||
| const X_LABELS = new Set(["x", "longitude", "lon"]); | ||
| const yAxisIndex = axes.findIndex((a) => Y_LABELS.has(a.toLowerCase())); | ||
| const xAxisIndex = axes.findIndex((a) => X_LABELS.has(a.toLowerCase())); | ||
|
|
||
| if (yAxisIndex === -1 || xAxisIndex === -1) { | ||
| throw new Error( | ||
| `spatial:dimensions must contain "x" and "y" (case-insensitive), got: ${JSON.stringify(axes)}`, | ||
| `spatial:dimensions must contain a Y axis ("y"/"latitude"/"lat") and ` + | ||
| `an X axis ("x"/"longitude"/"lon") (case-insensitive), got: ` + | ||
| `${JSON.stringify(axes)}`, |
Member
Author
There was a problem hiding this comment.
Not sure this is correct, but to be followed up in #451
kylebarron
marked this pull request as ready for review
April 20, 2026 20:27
kylebarron
enabled auto-merge (squash)
April 20, 2026 20:28
Closed
This was referenced Apr 20, 2026
Closed
Closed
This was referenced Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Screen.Recording.2026-04-20.at.4.29.11.PM.mov
Change list
ZarrLayer:zarr.Arrayorzarr.Groupselectionfor all non-spatial dimensions.dimensionName: null.getTileDataloads chunks into aTexture2dArrayGPU texture, which has height, width, plus the depth of the number of time chunks in the given forecast.init_timeandensemble_member(defaulting to0)Closes #403