-
Notifications
You must be signed in to change notification settings - Fork 9
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
move titiler-xarray within main titiler repo? #68
Comments
I think it is a good idea. titiler-xarray sounds like a special application but it is just an implementation of titiler that focuses on the |
Yes, The idea of moving it to titiler repo is also to be able to re-use the |
If I understand correctly, we probably want to move the ZarrReader code to core titiler (I would call it XarrayReader, not ZarrReader) and merge/add some of the factory methods defined here to titiler core. Seems like the factory methods in titiler core call self.reader, which would be either an XarrayReader or a rasterio reader (i.e. 2 different reader "backends"). I can't recall where is the issue for dynamically defining the reader type). Do we need to detail which methods would work for both backends and which would need to throw a "not implemented" error for one or the other backend? Perhaps the next step is a more specific implementation outline, unless you think that is overthinking it @vincentsarago . This repo could still be used to demonstrate how to implement those methods in a deployable application (like titiler-pgstac and titiler-cmr) |
👍 Yes the maint idea is to have a NetCDF/Zarr reader (name TBD, but I think it would just be We would still have a custom Factory because such Reader won't support all the endpoints defined in titiler.core factories. Supporting both BUT this can be done in titiler-pgstac/titiler-cmr/titiler-stacapi where users should not call single dataset endpoints but use pre-defined mosaic |
@vincentsarago in discussing developmentseed/titiler-cmr#34 we (@sharkinsspatial @maxrjones @hrodmn and me) were wondering if the ZarrReader logic should mostly be moved to rio_tiler's XarrayReader, rather than the core titiler library - would you agree? A few other things that came up:
We may open a PR to rio_tiler with an updated XarrayReader that we think would work for our use cases, if we have time this week. We understand the goal would be that the same API methods would be available for the XarrayReader and the rasterio-based Reader. |
I would say No, mostly because the ZarrReader comes with too many dependencies. I'm planning to make slight change to the XarrayReader in rio-tiler to avoid over customization in the ZarrReader but not a full integration.
👀 I'll start draft PR on both titiler and rio-tiler so you have visibility on what I'm doing |
TiTiler is evolving and it's hard to keep track on all titiler-* subproject, which is why I would like to ear people's opinions about moving the core code of titiler-xarray within the main titiler repo
I don't think we'll move over everything (e.g not the infrastructure code)
The text was updated successfully, but these errors were encountered: