You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A default Dataset IO is provided within `titiler.xarray.Reader` class but will require optional dependencies (fsspec, zarr, h5netcdf, ...) to be installed with `python -m pip install "titiler.xarray[all]"`.
66
+
Dependencies are optional so the entire package size can be optimized to only include dependencies required by a given application.
67
+
68
+
```python
69
+
from titiler.xarray.io import Reader
70
+
71
+
import xarray
72
+
import h5netcdf # noqa
73
+
74
+
with Reader(
75
+
"tests/fixtures/dataset_2d.nc",
76
+
"dataset",
77
+
opener=xarray.open_dataset,
78
+
) as src:
79
+
print(src.ds)
80
+
81
+
>>><xarray.Dataset> Size: 16MB
82
+
Dimensions: (x: 2000, y: 1000)
83
+
Coordinates:
84
+
* x (x) float64 16kB-170.0-169.8-169.7-169.5...169.5169.7169.8
85
+
* y (y) float64 8kB-80.0-79.84-79.68-79.52...79.5279.6879.84
0 commit comments