Skip to content

A new collection provider XdggsCollectionProvider for xdggs datasets. - #95

Merged
tik65536 merged 8 commits into
mainfrom
xdggs_collection_provider
Oct 14, 2026
Merged

tik65536 merged 8 commits into
mainfrom
xdggs_collection_provider

Conversation

@tik65536

Copy link
Copy Markdown
Member

Summary

  • A collection provider supports the xdggs-plugin for DGGS datasets stored in Zarr using the xarray Datatree as an accessor.
  • The implementation is based on xdggs 0.7.0

Implementation summary

  • XdggsCollectionProvider inherits from ZarrCollectionProvider
  • They differ in initialisation and in part of the get_data method because xarray-sql doesn't support xindexes
  • All datasets are instantiated with the xdggs index at start, together with xarray indexing options (i.e. range index, moc inde)
  • As mentioned above, xarray-sql is not compatible with xdggs, so when CQL is used in zone_query or zone_data_retrieval, the get_data function of XdggsCollectionProvider has to drop the xdggs index before it continues to the parent's get_data method. After the query is done, it restores the dataset with the xdggs index.
  • It doesn't require the user to specify the mapping between groups and refinement levels; those are retrieved from the xdggs dataset attributes.

@tik65536
tik65536 merged commit f48f24f into main Oct 14, 2026
1 of 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.

1 participant