Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Zarr Metadata With xstac

ESA

Open The Remote Zarr Store and Attach CRS Metadata

Loading...
Loading...

Derive Spatial And Temporal Extents

This cell reads the projected x and y coordinate limits, transforms them to WGS84, then sets the final geographic bounding box used in STAC. It also converts the dataset time coordinate range into Python datetimes.

Build The STAC Template And Let xstac Extract Metadata

The template supplies item-level fields such as ID, licence, temporal extent, geometry, and the Zarr data asset. xarray_to_stac then combines that template with metadata extracted from the xarray dataset. The final item.validate() call checks the generated STAC object with pystac validation.

['https://schemas.stacspec.org/v1.1.0/item-spec/json-schema/item.json', 'https://stac-extensions.github.io/datacube/v2.2.0/schema.json']