You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a problem I stumbled upon when using the roi method of salem (see here), but @fmaussion brought up the very good idea to maybe fix this upstream: when using the .where method, the encoding of the dataset/the dataarray is not preserved. Could this be changed or is there any specific reason (conflict?) why this is dropped?
Thanks for raising this. Please take a look at #1614. I'd love to figure out a more comprehensive set of rules for what xarray should do for propagating encoding/attributes in every operation. Proposals and opinions would be very welcome!
Thanks for your comment @shoyer and sorry for not having found the issue you refer to!
So in favor of a low number of open issues, what would you suggest? Should I just add the where case to #1614 and we close this?
My first issue in xarray, so I'd first of all thank you so much for this great package!
Code Sample, a copy-pastable example if possible
Problem description
This is a problem I stumbled upon when using the
roi
method of salem (see here), but @fmaussion brought up the very good idea to maybe fix this upstream: when using the.where
method, the encoding of the dataset/the dataarray is not preserved. Could this be changed or is there any specific reason (conflict?) why this is dropped?Expected Output
Output of
xr.show_versions()
The text was updated successfully, but these errors were encountered: