-
Notifications
You must be signed in to change notification settings - Fork 39
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
Different recognized coordinates when calling variable by standard name #357
Comments
If Can you add this to the FAQ if you have time: https://cf-xarray.readthedocs.io/en/latest/faq.html? |
Yes You should have an autoresponder for my questions that says it is always the |
Should the |
To attach coordinate variables when you pull out a dataarray, Xarray checks Comparing
This is where a nice HTML repr for |
How is the |
It's set in the netcdf dataset. It is never modified. Xarray moves it to eencoding if That ROMS attribute looks incomplete IMO: |
I have gotten stuck in the past where the coordinates are either missing or wrong. One time this came up I think was when calculating the z coordinates, which should then be included in the |
yes the 4D z variable is a great use for the coordinates attribute. |
I found it too difficult to consistently modify the |
I think the only option is to keep This might be another use case for #253; automatically update coordinates attribute for various operations. So |
Thanks @dcherian! I'll close this but yes I do think updating coordinates attributes would be hugely useful. |
Opening since it would be nice to add this stuff to the documentation. |
Sorry I have to kick this down the road a bit, but it's on my to do list. |
I know this isn't good form, but I am going to describe my problem to see if anyone has an idea of a direction to go, without a good example to start. I am using several libraries together and making an example case seems difficult.
Here is the base question though:
ds['zeta'].cf['longitude']
worked butds.cf['sea_surface_height_above_mean_sea_level'].cf['longitude']
did notin other words, when I used the variable name to access a variable in my dataset, cf-xarray knew the mapping for
longitude
. But, when I referred to the variable by its standard name that cf-xarray recognized, cf-xarray did not then know the mapping forlongitude
. This seems weird right? Any ideas of what could be wrong?The text was updated successfully, but these errors were encountered: