-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assign_coords downgrades GeometryIndex to PandasIndex #13
Comments
@benbovy I am wondering if this is actually not an |
It is indeed a bug in Xarray :-). Fix is here: pydata/xarray#7347 In the meantime, I think the easiest workaround is to re-assign a GeometryIndex with |
Or you can wait for the next, imminent Xarray release 2022.12.0. |
I already have a solution locally with a todo to change it once it comes. Thanks for the quick fix! |
Closed by an xarray fix. |
If you call
assign_coords
on aDataArray
with one or moreGeometryIndex
, they all get downgraded toPandasIndex
.This also needs to be fixed before I can move on with #11 as it currently breaks transformation of multiple coordinates at the same time.
The text was updated successfully, but these errors were encountered: