Skip to content

feat: Add a read-only TileDB backend #4988

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ io =
cftime
rasterio
cfgrib
tiledb >= 0.8.3
## Scitools packages & dependencies (e.g: cartopy, cf-units) can be hard to install
# scitools-iris

Expand Down Expand Up @@ -231,6 +232,8 @@ ignore_missing_imports = True
# be going away soon anyways)
[mypy-xarray.core.pycompat]
ignore_errors = True
[mypy-tiledb.*]
ignore_missing_imports = True

[aliases]
test = pytest
Expand Down
2 changes: 2 additions & 0 deletions xarray/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from .pydap_ import PydapDataStore
from .pynio_ import NioDataStore
from .scipy_ import ScipyDataStore
from .tiledb_ import TileDBDataStore
from .zarr import ZarrStore

__all__ = [
Expand All @@ -30,5 +31,6 @@
"H5NetCDFStore",
"ZarrStore",
"PseudoNetCDFDataStore",
"TileDBDataStore",
"list_engines",
]
3 changes: 2 additions & 1 deletion xarray/backends/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"pseudonetcdf": backends.PseudoNetCDFDataStore.open,
"cfgrib": backends.CfGribDataStore,
"zarr": backends.ZarrStore.open_group,
"tiledb": backends.TileDBDataStore,
}


Expand Down Expand Up @@ -363,7 +364,7 @@ def open_dataset(
- "all": Set variables referred to in ``'grid_mapping'``, ``'bounds'`` and
other attributes as coordinate variables.
engine : {"netcdf4", "scipy", "pydap", "h5netcdf", "pynio", "cfgrib", \
"pseudonetcdf", "zarr"}, optional
"pseudonetcdf", "zarr", "tiledb"}, optional
Engine to use when reading files. If not provided, the default engine
is chosen based on available dependencies, with a preference for
"netcdf4".
Expand Down
2 changes: 1 addition & 1 deletion xarray/backends/apiv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def open_dataset(
Engine to use when reading files. If not provided, the default engine
is chosen based on available dependencies, with a preference for
"netcdf4". Options are: {"netcdf4", "scipy", "pydap", "h5netcdf",\
"pynio", "cfgrib", "pseudonetcdf", "zarr"}.
"pynio", "cfgrib", "pseudonetcdf", "zarr", "tiledb"}.
chunks : int or dict, optional
If chunks is provided, it is used to load the new dataset into dask
arrays. ``chunks=-1`` loads the dataset with dask using a single
Expand Down
Loading