# xarray.backends.NetCDF4DataStore.encode_variable

#### NetCDF4DataStore.encode_variable(variable, name=None)[[source]](https://github.com/pydata/xarray/blob/main/xarray/backends/netCDF4_.py#L701-L708)

encode one variable
