xarray.backends.NetCDF4DataStore

class xarray.backends.NetCDF4DataStore(manager, group=None, mode=None, lock=CombinedLock([<SerializableLock: b9f169fa-2f23-4c42-b8cd-6df715f240d3>, <SerializableLock: c5372e98-b284-49f2-8040-75a8357510b0>]), 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: b9f169fa-2f23-4c42-b8cd-6df715f240d3>, <SerializableLock: c5372e98-b284-49f2-8040-75a8357510b0>]), 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

attrs

autoclose

dimensions

ds

format

is_remote

lock

variables