xarray.backends.NetCDF4DataStore#
- class xarray.backends.NetCDF4DataStore(manager, group=None, mode=None, lock=CombinedLock([<SerializableLock: xarray-hdf5-lock>, <SerializableLock: xarray-netcdfc-lock>]), autoclose=False)[source]#
Store for reading and writing data via the Python-NetCDF4 library.
This store supports NetCDF3, NetCDF4 and OpenDAP datasets.
- __init__(manager, group=None, mode=None, lock=CombinedLock([<SerializableLock: xarray-hdf5-lock>, <SerializableLock: xarray-netcdfc-lock>]), autoclose=False)[source]#
Methods
__init__(manager[, group, mode, lock, autoclose])close(**kwargs)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_parent_dimensions()load()Load the variables and attributes simultaneously.
open(filename[, mode, format, group, ...])open_store_variable(name, var)prepare_variable(name, variable[, ...])set_attribute(key, value)set_attributes(attributes)Set the dataset attributes on the data store.
set_dimension(name, 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