# xarray.backends.H5NetCDFStore

### *class* xarray.backends.H5NetCDFStore(manager, group=None, mode=None, format='NETCDF4', lock=<SerializableLock: xarray-hdf5-lock>, autoclose=False)[[source]](https://github.com/pydata/xarray/blob/main/xarray/backends/h5netcdf_.py#L111-L469)

Store for reading and writing data via h5netcdf

#### \_\_init_\_(manager, group=None, mode=None, format='NETCDF4', lock=<SerializableLock: xarray-hdf5-lock>, autoclose=False)[[source]](https://github.com/pydata/xarray/blob/main/xarray/backends/h5netcdf_.py#L125-L157)

### Methods

| [`__init__`](#xarray.backends.H5NetCDFStore.__init__)(manager[, group, mode, format, ...])                                                 |                                                                                                                                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [`close`](xarray.backends.H5NetCDFStore.close.html.md#xarray.backends.H5NetCDFStore.close)(\*\*kwargs)                                         |                                                                                                                                                                                           |
| [`encode`](xarray.backends.H5NetCDFStore.encode.html.md#xarray.backends.H5NetCDFStore.encode)(variables, attributes)                            | Encode the variables and attributes in this store                                                                                                                                         |
| [`encode_attribute`](xarray.backends.H5NetCDFStore.encode_attribute.html.md#xarray.backends.H5NetCDFStore.encode_attribute)(a)                            | encode one attribute                                                                                                                                                                      |
| [`encode_variable`](xarray.backends.H5NetCDFStore.encode_variable.html.md#xarray.backends.H5NetCDFStore.encode_variable)(variable[, name])               | encode one variable                                                                                                                                                                       |
| [`get_attrs`](xarray.backends.H5NetCDFStore.get_attrs.html.md#xarray.backends.H5NetCDFStore.get_attrs)()                                           |                                                                                                                                                                                           |
| `get_child_store`(group)                                                                                                                       | Get a store corresponding to the indicated child group.                                                                                                                                   |
| [`get_dimensions`](xarray.backends.H5NetCDFStore.get_dimensions.html.md#xarray.backends.H5NetCDFStore.get_dimensions)()                                 |                                                                                                                                                                                           |
| [`get_encoding`](xarray.backends.H5NetCDFStore.get_encoding.html.md#xarray.backends.H5NetCDFStore.get_encoding)()                                     |                                                                                                                                                                                           |
| `get_parent_dimensions`()                                                                                                                      |                                                                                                                                                                                           |
| [`get_variables`](xarray.backends.H5NetCDFStore.get_variables.html.md#xarray.backends.H5NetCDFStore.get_variables)()                                   |                                                                                                                                                                                           |
| [`load`](xarray.backends.H5NetCDFStore.load.html.md#xarray.backends.H5NetCDFStore.load)()                                                     | This loads the variables and attributes simultaneously.                                                                                                                                   |
| [`open`](xarray.backends.H5NetCDFStore.open.html.md#xarray.backends.H5NetCDFStore.open)(filename[, mode, format, group, lock, ...])           |                                                                                                                                                                                           |
| [`open_store_variable`](xarray.backends.H5NetCDFStore.open_store_variable.html.md#xarray.backends.H5NetCDFStore.open_store_variable)(name, var)              |                                                                                                                                                                                           |
| [`prepare_variable`](xarray.backends.H5NetCDFStore.prepare_variable.html.md#xarray.backends.H5NetCDFStore.prepare_variable)(name, variable[, ...])        |                                                                                                                                                                                           |
| [`set_attribute`](xarray.backends.H5NetCDFStore.set_attribute.html.md#xarray.backends.H5NetCDFStore.set_attribute)(key, value)                         |                                                                                                                                                                                           |
| [`set_attributes`](xarray.backends.H5NetCDFStore.set_attributes.html.md#xarray.backends.H5NetCDFStore.set_attributes)(attributes)                       | This provides a centralized method to set the dataset attributes on the data store.                                                                                                       |
| [`set_dimension`](xarray.backends.H5NetCDFStore.set_dimension.html.md#xarray.backends.H5NetCDFStore.set_dimension)(name, length[, is_unlimited])       |                                                                                                                                                                                           |
| [`set_dimensions`](xarray.backends.H5NetCDFStore.set_dimensions.html.md#xarray.backends.H5NetCDFStore.set_dimensions)(variables[, unlimited_dims])      | This provides a centralized method to set the dimensions on the data store.                                                                                                               |
| [`set_variable`](xarray.backends.H5NetCDFStore.set_variable.html.md#xarray.backends.H5NetCDFStore.set_variable)(k, v)                                 |                                                                                                                                                                                           |
| [`set_variables`](xarray.backends.H5NetCDFStore.set_variables.html.md#xarray.backends.H5NetCDFStore.set_variables)(variables, check_encoding_set, ...) | This provides a centralized method to set the variables on the data store.                                                                                                                |
| [`store`](xarray.backends.H5NetCDFStore.store.html.md#xarray.backends.H5NetCDFStore.store)(variables, attributes[, ...])                       | Top level method for putting data on this store, this method:                                                                                                                             |
| [`store_dataset`](xarray.backends.H5NetCDFStore.store_dataset.html.md#xarray.backends.H5NetCDFStore.store_dataset)(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`](xarray.backends.H5NetCDFStore.sync.html.md#xarray.backends.H5NetCDFStore.sync)()                                                     | Write all buffered data to disk.                                                                                                                                                          |

### Attributes

| [`autoclose`](xarray.backends.H5NetCDFStore.autoclose.html.md#xarray.backends.H5NetCDFStore.autoclose)   |    |
|------------------------------------------------------------------------------------------------------|----|
| [`format`](xarray.backends.H5NetCDFStore.format.html.md#xarray.backends.H5NetCDFStore.format)         |    |
| [`is_remote`](xarray.backends.H5NetCDFStore.is_remote.html.md#xarray.backends.H5NetCDFStore.is_remote)   |    |
| [`lock`](xarray.backends.H5NetCDFStore.lock.html.md#xarray.backends.H5NetCDFStore.lock)             |    |
| [`ds`](xarray.backends.H5NetCDFStore.ds.html.md#xarray.backends.H5NetCDFStore.ds)                 |    |
