I'm trying to use xarray.save_mfdataset to write out a bunch of netcdf files from a dask-enabled jupyter notebook.
Is there any way to specify the encoding and unlimited_dim as you would using the to_netcdf()
function?
Tagging @Anderson Banihirwe
The solution is to loop over and update DataArray.encoding
and Dataset.encoding
before calling save_mfdataset
unlimited_dims may also be set via dataset.encoding["unlimited_dims"].
Thanks, I'll give that a shot!
Last updated: May 16 2025 at 17:14 UTC