TileDB-CF Overview
About
TileDB-CF is a python package intended to aid in modeling and analyzing complex multi-dimensional data in TileDB. It currently contains the following components:
Core: High-level API for common TileDB group and metadata actions, and a creator class for generating TileDB groups following the TileDB-CF Dataspace specification.
NetCDF Engine: Support for creating a TileDB group or array from NetCDF data and copying the data into the new group or array.
Xarray Engine:
- Backend engine that can be used with
xarray.open_dataset
. - Support for creating a TileDB from an xarray dataset and copying the data into the new group.
- Backend engine that can be used with
Installation
This project is available from PyPI and may be installed with pip
:
pip install tiledb-cf
TileDB-CF contains optional features that will be enabled if the required python packages are included in the python environment. These include:
netCDF4
: support for the NetCDF engine,xarray
: support for the xarray engine,parallel
: support for dask operations (used with the xarray engine),complete
: all of the above packages,docs
: support for quartodoc and the example notebooks.
To install tiledb-cf with additional dependencies use:
pip install tiledb-cf[<optional dependecies>]
For example, to install TileDB-CF-Py and enable the xarray engine with dask support:
pip install 'tiledb-cf[xarray,parallel]'
TileDB Data Model
TileDB is a powerful open-source engine for storing and accessing dense and sparse multi-dimensional arrays. A complete description of the TileDB data model can be found at the TileDB website.
TileDB stores data as dense or sparse multi-dimensional arrays. The arrays can be grouped together in TileDB groups. A brief summary:
Group: A group is a TileDB object that stores metadata, arrays, and other groups. The groups use URIs to track members, so multiple groups can store the same assets.
Array: A set of attributes and dimensions that can be queried together:
Dimensions: The dimensions along with their domains orient a multi-dimensional space of cells. A dimension is defined by its name, domain, and data type along with additional data that specifies data storage and compression. The dimension values is called the cell coordinates. There can be any number of dimensions in an array.
Attributes: In each cell in the logical layout, TileDB stores a tuple comprised of any number of attributes, each of any data type (fixed- or variable-sized).
Metadata: This is (typically small) key-value data associated with an array or a group.
Dimension labels (experimental): Dimension labels store either increasing of decreasing data in a one-dimensional TileDB array that can be used to indirectly query other dimensions.