xarray.backends.H5NetCDFStore¶
-
class
xarray.backends.H5NetCDFStore(filename, mode='r', format=None, group=None, writer=None, autoclose=False, lock=<thread.lock object>)¶ Store for reading and writing data via h5netcdf
-
__init__(filename, mode='r', format=None, group=None, writer=None, autoclose=False, lock=<thread.lock object>)¶ x.__init__(…) initializes x; see help(type(x)) for signature
Methods
__init__(filename[, mode, format, group, …])x.__init__(…) initializes x; see help(type(x)) for signature assert_open()close()encode(variables, attributes)Encode the variables and attributes in this store encode_attribute(a)encode one attribute encode_variable(variable)encode one variable ensure_open(**kwds)Helper function to make sure datasets are closed and opened at appropriate times to avoid too many open file errors. get(k[,d])get_attrs()get_dimensions()get_encoding()get_variables()items()iteritems()iterkeys()itervalues()keys()load()This loads the variables and attributes simultaneously. open_store_variable(name, var)prepare_variable(name, variable[, …])set_attribute(key, value)set_attributes(attributes)This provides a centralized method to set the dataset attributes on the data store. set_dimension(name, length[, is_unlimited])set_dimensions(variables[, unlimited_dims])This provides a centralized method to set the dimensions on the data store. set_variable(k, v)set_variables(variables, check_encoding_set)This provides a centralized method to set the variables on the data store. store(variables, attributes[, …])Top level method for putting data on this store, this method: - encodes variables/attributes - sets dimensions - sets variables store_dataset(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([compute])values()Attributes
attrsdimensionsdsvariables-