xarray.backends.NetCDF4DataStore¶
-
class
xarray.backends.
NetCDF4DataStore
(filename, mode='r', format='NETCDF4', group=None, writer=None, clobber=True, diskless=False, persist=False, autoclose=False)¶ Store for reading and writing data via the Python-NetCDF4 library.
This store supports NetCDF3, NetCDF4 and OpenDAP datasets.
-
__init__
(filename, mode='r', format='NETCDF4', group=None, writer=None, clobber=True, diskless=False, persist=False, autoclose=False)¶
Methods
__init__
(filename[, mode, format, group, ...])assert_open
()close
()ensure_open
(autoclose)Helper function to make sure datasets are closed and opened at appropriate times to avoid too many open file errors. get
((k[,d]) -> D[k] if k in D, ...)get_attrs
()get_dimensions
()get_encoding
()get_variables
()items
(...)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)set_dimension
(name, length)set_necessary_dimensions
(variable[, ...])set_variable
(k, v)set_variables
(*args, **kwargs)store
(variables, attributes, *args, **kwargs)store_dataset
(dataset)sync
()values
(...)Attributes
attrs
dimensions
variables
-