xarray is dropping dataset attributes by default. This afffects us when, for example, we call to_2d(). The resulting dataset does not have any metadata.
I think that in most cases we should preserve them (or even update them, but this is a different issue).
To preserve the metadata it should be enough to add a line like this
xarray is dropping dataset attributes by default. This afffects us when, for example, we call
to_2d()
. The resulting dataset does not have any metadata.I think that in most cases we should preserve them (or even update them, but this is a different issue).
To preserve the metadata it should be enough to add a line like this
https://docs.xarray.dev/en/stable/getting-started-guide/faq.html#what-is-your-approach-to-metadata