xarray.backends.NetCDF4DataStore¶
-
class
xarray.backends.NetCDF4DataStore(manager, group=None, mode=None, lock=CombinedLock([<SerializableLock: f4f50c71-e294-4ef9-b66c-9a84f3480a0c>, <SerializableLock: a6902353-7565-4249-929b-a1083ead8df6>]), autoclose=False)¶ Store for reading and writing data via the Python-NetCDF4 library.
This store supports NetCDF3, NetCDF4 and OpenDAP datasets.
-
__init__(self, manager, group=None, mode=None, lock=CombinedLock([<SerializableLock: f4f50c71-e294-4ef9-b66c-9a84f3480a0c>, <SerializableLock: a6902353-7565-4249-929b-a1083ead8df6>]), autoclose=False)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(self, manager[, group, mode, lock, …])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(filename[, mode, format, group, …])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
attrsautoclosedimensionsdsformatis_remotelockvariables-