xray.backends.NetCDF4DataStore

class xray.backends.NetCDF4DataStore(filename, mode='r', clobber=True, diskless=False, persist=False, format='NETCDF4', group=None)

Store for reading and writing data via the Python-NetCDF4 library.

This store supports NetCDF3, NetCDF4 and OpenDAP datasets.

__init__(filename, mode='r', clobber=True, diskless=False, persist=False, format='NETCDF4', group=None)

Methods

__init__(filename[, mode, clobber, ...])
close()
get((k[,d]) -> D[k] if k in D, ...)
get_attrs()
get_dimensions()
get_variables()
items(() -> list of D’s (key, value) pairs, ...)
iteritems(() -> an iterator over the (key, ...)
iterkeys(() -> an iterator over the keys of D)
itervalues(...)
keys(() -> list of D’s keys)
load() This loads the variables and attributes simultaneously.
open_store_variable(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(variables)
store(variables, attributes)
store_dataset(dataset)
sync()
values(() -> list of D’s values)

Attributes

attrs
dimensions
variables