File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11# xpystac
2- For extending ` xarray.open_dataset ` to accept pystac objects
2+ xpystac provides the glue that allows ` xarray.open_dataset ` to accept pystac objects.
3+
4+ The goal is that as long as this library is in your env, you should never need to think about it.
35
46## Example
57
@@ -25,6 +27,12 @@ xr.open_dataset(search, engine="stac")
2527pip install git+https://github.com/jsignell/xpystac
2628```
2729
30+ ## How it works
31+
32+ When you call `` xarray.open_dataset(object, engine="stac") `` this library maps that open call to the correct library.
33+ Depending on the `` type `` of `` object `` that might be [ stackstac] ( https://github.com/gjoseph92/stackstac )
34+ or back to `` xarray.open_dataset `` itself but with the engine and other options pulled from the pystac object.
35+
2836## Prior Art
2937
3038This work is inspired by https://github.com/TomAugspurger/staccontainers and the discussion in https://github.com/stac-utils/pystac/issues/846
You can’t perform that action at this time.
0 commit comments