-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
I am looking at saving a DataArray to netcdf. This appears to require turning into a dataset. However, the conversion to and from datasets appears to be lossy.
d = DataArray(...)
n = d.to_dataset().to_array()
looses attrs and the name of the DataArray gets moved to a "variable" coordinate.
I can manually add the attrs to the created dataset, but it seems like they should either be transfered by default, or have an option to preserve them. Is there a reason this is not done?
Metadata
Metadata
Assignees
Labels
No labels