-
Notifications
You must be signed in to change notification settings - Fork 41
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
DataArray coordinates are dropped #99
Comments
This is currently intentional. To get what you want add Right now if there are no We could change the behaviour for this particular case (no We should add an FAQ for these kinds of things. That would be a nice thing to contribute! EDIT: xarray's heuristics are to keep non-dim coordinate variables when |
Ohh my bad, I missed that part in the documentation. I'll start the FAQ section! |
I'm wondering whether it would be a good idea to retain cell measures that are not defined by CF conventions. I.e., apply the same behavior of For example, I'd like to associate a DataArray with cell area, thickness, x/y widths. Besides for area and volume, when I select a This would allow to use coordinates for lat lon depth time, and cell measures for volume, area, thickness, and widths, ... |
|
Yes sounds good to me. Variable names in IIUC you are proposing that only One issue is that |
It looks like when I pull out a DataArray from a Dataset using
cf_xarray
the coordinates are dropped (whilexarray
keeps them).Here is an example:
PS: This package is great! Let me know if I can help!
The text was updated successfully, but these errors were encountered: