Conversation
Generate static STAC (SpatioTemporal Asset Catalog) JSON at build time, providing a machine-readable API for dataset discovery. Adds a root catalog at /stac/catalog.json and per-dataset collection pages with Zarr and Icechunk asset links.
Deploying dynamical-org with
|
| Latest commit: |
d70768c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bcf14c32.dynamical-org.pages.dev |
| Branch Preview URL: | https://add-stac-catalog.dynamical-org.pages.dev |
Populates cube:dimensions and cube:variables from zarr metadata already fetched at build time. Spatial dimensions get extents from bbox, temporal dimensions are typed, and all variables include their dimension references and units.
The datacube extension schema requires extent on all dimension types. Without it, stac-validator rejects the collections.
aldenks
requested changes
Mar 27, 2026
.eleventy.js
Outdated
Comment on lines
+259
to
+261
| const isGlobal = | ||
| entry.spatial_domain && entry.spatial_domain.includes("Global"); | ||
| const bbox = isGlobal ? [-180, -90, 180, 90] : [-125, 24, -66, 50]; |
Member
There was a problem hiding this comment.
claude! (this is just hardcoded lol)
.eleventy.js
Outdated
| "cube:variables": cubeVariables, | ||
| extent: { | ||
| spatial: { bbox: [bbox] }, | ||
| temporal: { interval: [["2000-01-01T00:00:00Z", null]] }, |
Use statistics_approximate attributes from zarr coordinate arrays instead of hardcoded bbox and temporal start values.
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.
Summary
/stac/catalog.jsonlists all live datasets; per-dataset collection pages at/stac/{dataset_id}/collection.jsoninclude Zarr and Icechunk asset linksTest plan
npm run buildand verifydocs/stac/catalog.jsonis valid JSON with correct child linksdocs/stac/noaa-gfs-analysis-hourly/collection.json) contain correct assets and metadatastac-validator)