Closed kobebryant432 closed 6 months ago
This seems to be an issue with the engine you use (probably scipy) while it should be netcdf4
. I am using netcdf4
and never had this issue.
i will add netcdf4
to the dependencies, and specify the engine in the save nc function like this:
# convert to nc
xrdata.to_netcdf(path=target_file,
engine='netcdf4',
mode='w',
**kwargs)
I found this engine issue here: https://github.com/pydata/xarray/issues/3374
Saving a collection's (after combined with validate) xarray to netcdf does not work.
The following error is thrown:
I think the attribute type are not compatible.