xarray.backends.ScipyDataStore#
- class xarray.backends.ScipyDataStore(filename_or_obj, mode='r', format=None, group=None, mmap=None, lock=None)[source]#
Store for reading and writing data via scipy.io.netcdf_file.
This store has the advantage of being able to be initialized with a StringIO object, allow for serialization without writing to disk.
It only supports the NetCDF3 file-format.
Methods
__init__(filename_or_obj[, mode, format, ...])close()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_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
lock