Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sketch XarrayTiler #152

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

vincentsarago
Copy link
Contributor

@vincentsarago vincentsarago commented Feb 9, 2023

Add a XarrayTilerFactory to add tiling endpoints for zarr (xarray readable) dataset

This is mostly inspired from cogeotiff/rio-tiler#530 (comment)

TODO

  • add test
  • decide what happens for multiple dimension variable
  • add the endpoints to the application

@vincentsarago vincentsarago changed the title sketchout XarrayTiler sketch XarrayTiler Feb 9, 2023
zarr.zarr_factory.router,
prefix=settings.zarr_endpoint_prefix,
tags=["Preview"],
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This should create /zarr/tiles/... endpoints

Most of endpoints needs a URL (of a zarr dataset), a variable name (you can get the list of variable with /zarr/variables?url=...) and optionaly a time_slice={num of time slice} (will default to 0, the first one)

@vincentsarago
Copy link
Contributor Author

Preview of the endpoints:

  • /variables: return a list of available variables for a Zarr dataset
  • /info: simple geo info about the dataset. I added show_times=True/False option if the users wants to get the time slices info (because the time dimension could be huge, I think it's safer to make it optional)

Screenshot 2023-02-28 at 5 07 32 PM

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