# xarray.backends.H5NetCDFStore.encode

#### H5NetCDFStore.encode(variables, attributes)[[source]](https://github.com/pydata/xarray/blob/main/xarray/backends/common.py#L716-L724)

Encode the variables and attributes in this store

* **Parameters:**
  * **variables** ([dict-like](https://docs.python.org/3/glossary.html#term-mapping)) – Dictionary of key/value (variable name / xr.Variable) pairs
  * **attributes** ([dict-like](https://docs.python.org/3/glossary.html#term-mapping)) – Dictionary of key/value (attribute name / attribute) pairs
* **Returns:**
  * **variables** ([dict-like](https://docs.python.org/3/glossary.html#term-mapping))
  * **attributes** ([dict-like](https://docs.python.org/3/glossary.html#term-mapping))
