pp-mo / ncdata

Free and efficient exchange of data between netcdf files, Xarray and Iris
https://ncdata.readthedocs.io/en/latest/index.html
BSD 3-Clause "New" or "Revised" License
10 stars 2 forks source link

Support encoding in to_xarray : notably unlimited_dims #66

Open pp-mo opened 8 months ago

pp-mo commented 8 months ago

Direct loading via xr.open_dataset() sets ds.encoding['unlimited_dims'] But currently, ncdata.xarray.to_xarray does not do this, meaning that unlimited dims get lost.

( Maybe surprisingly though, this does not affect Dataset.identical() checking : encodings do not count there )