xarray.backends.ZarrStore#
- class xarray.backends.ZarrStore(zarr_group, mode=None, consolidate_on_close=False, append_dim=None, write_region=None, safe_chunks=True, write_empty=None, close_store_on_close=False, use_zarr_fill_value_as_mask=None, align_chunks=False, cache_members=True)[source]#
Store for reading and writing data via zarr.
- __init__(zarr_group, mode=None, consolidate_on_close=False, append_dim=None, write_region=None, safe_chunks=True, write_empty=None, close_store_on_close=False, use_zarr_fill_value_as_mask=None, align_chunks=False, cache_members=True)[source]#
Methods
__init__(zarr_group[, mode, ...])array_keys()arrays()close()encode(variables, attributes)Encode the variables and attributes in this store.
Encode one attribute.
encode_variable(variable[, name])Encode one variable.
get_child_store(group)Get a store corresponding to the indicated child group.
get_encoding()get_parent_dimensions()load()Load the variables and attributes simultaneously.
open_group(store[, mode, group, ...])open_store(store[, mode, group, ...])open_store_variable(name)prepare_variable(name, variable, ...)set_attribute(k, v)set_attributes(attributes)Set the dataset attributes on the data store.
set_dimension(dim, length, is_unlimited)set_dimensions(variables[, unlimited_dims])Set the dimensions on the data store.
set_variable(k, v)set_variables(variables, check_encoding_set, ...)Set the variables on the data store.
store(variables, attributes[, ...])Put data on this store.
store_dataset(dataset)Store a whole dataset in this store.
sync()Write all buffered data to disk.
Attributes
zarr_groupmembersModel the arrays and groups contained in self.zarr_group as a dict.