cf.from_xarray

cf.from_xarray(dataset, group_uri, *, config=None, ctx=None, encoding=None, region=None, unlimited_dims=None, skip_vars=None)

Creates a TileDB group and copies all data from an xarray dataset.

Parameters

Name Type Description Default
dataset The xarray Dataset to write. required
group_uri The URI to the TileDB group to create or append to. required
config typing.Optional[tiledb.tiledb.Config] A TileDB config object to use for TileDB objects. None
ctx typing.Optional[tiledb.tiledb.Ctx] A TileDB context object to use for TileDB operations. None
encoding typing.Optional[typing.Mapping[str, typing.Any]] A nested dictionary with variable names as keys and dictionaries of TileDB specific encoding. None
encoding typing.Optional[typing.Mapping[str, typing.Any]] A nested dictionary with variable names as keys and dictionaries of TileDB specific encodings as values. None
region typing.Optional[typing.Mapping[str, slice]] A mapping from dimension names to integer slices that specify what regions in the TileDB arrays to write the data. Regions include the first value of the slice and exclude the final value. None
unlimited_dims typing.Optional[typing.Iterable[str]] Set of dimensions to use the maximum dimension size for. Only used for variables in the dataset that do not have max_size encoding provided. None
skip_vars typing.Optional[typing.Set[str]] A set of names of variables not to add to the TileDB group. None