Closed griverat closed 2 years ago
Hi @DangoMelon, thanks for your interest. I have not been able to maintain the xarray interface recently, if you would like to fix this with a pull request I'd be happy to review.
Thanks for the reply! I will send a PR with said change now.
I just encountered this same error. Thanks so much @DangoMelon for making a PR to fix it!
I also encountered this error.
xarray
released a few days ago the 0.19.0 version which comes with some deprecations (https://github.com/pydata/xarray/pull/5630) that seem to affect data with non-dimension coordinate only.Sample code
This is the error raised
Changing the last line to
fixes the issue, however a non-dimension coordinate is lost, being in this case the coordinate 'month' that comes from the groupby operation from
xarray
.Testing the same sample code with the previous
xarray
version (0.18.2) yields the expected resultFollowing the suggestion in the error raised by changing this line
https://github.com/ajdawson/eofs/blob/603ed8ed86e606fcf8e69a9edc756f81544d4f93/lib/eofs/xarray.py#L638-L640
to
Solves the issue with no apparent breaking change. I can send a simple PR if it seems okey.