xarray.backends.H5NetCDFStore¶
-
class
xarray.backends.H5NetCDFStore(filename, mode='r', format=None, group=None, lock=None, autoclose=False, invalid_netcdf=None)¶ Store for reading and writing data via h5netcdf
-
__init__(self, filename, mode='r', format=None, group=None, lock=None, autoclose=False, invalid_netcdf=None)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(self, filename[, mode, format, …])Initialize self.
close(self, \*\*kwargs)encode(self, variables, attributes)Encode the variables and attributes in this store
encode_attribute(self, a)encode one attribute
encode_variable(self, variable)encode one variable
get(self, key[, default])get_attrs(self)get_dimensions(self)get_encoding(self)get_variables(self)items(self)keys(self)load(self)This loads the variables and attributes simultaneously.
open_store_variable(self, name, var)prepare_variable(self, name, variable[, …])set_attribute(self, key, value)set_attributes(self, attributes)This provides a centralized method to set the dataset attributes on the data store.
set_dimension(self, name, length[, is_unlimited])set_dimensions(self, variables[, unlimited_dims])This provides a centralized method to set the dimensions on the data store.
set_variable(self, k, v)set_variables(self, variables, …[, …])This provides a centralized method to set the variables on the data store.
store(self, variables, attributes[, …])Top level method for putting data on this store, this method:
store_dataset(self, dataset)in stores, variables are all variables AND coordinates in xarray.Dataset variables are variables NOT coordinates, so here we pass the whole dataset in instead of doing dataset.variables
sync(self)values(self)Attributes
attrsdimensionsdsvariables-