# 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)()                                                     | Load 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)                       | 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])      | 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, ...) | Set the variables on the data store.                    |
| [`store`](xarray.backends.H5NetCDFStore.store.html.md#xarray.backends.H5NetCDFStore.store)(variables, attributes[, ...])                       | Put data on this store.                                 |
| [`store_dataset`](xarray.backends.H5NetCDFStore.store_dataset.html.md#xarray.backends.H5NetCDFStore.store_dataset)(dataset)                            | Store a whole dataset in this store.                    |
| [`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)                 |    |
