-
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
axis attribute missing for lat/lon when using guess_coord_axis #368
Comments
The issue here is that for analysis, it is useful to distinguish between 1D dimensions or axes of the array, and the actual lat, lon coordinate variables which may be 2D. In that case, you want to be able to do |
Of course, I wouldn't add the axis attribute, when lat/lon are auxiliary coordinate variables. But when there is a dim |
I think the reason I didn't do this was that it makes it hard to write code that generalizes for dimension vs auxiliary lat, lon variables. Potentially we could have
Oooh can you post a link or the text from the conventions please? |
@dcherian it is in the first post: If lat (or lon) is a auxiliary coordinate it of course shouldn't hold an |
To be clear, it is optional:
so I still like this approach:
|
Yes it is optional. But I would like to get the axis (if present) without first checking if they may be lat/lon. I got a file with lat/lon/z coords but only z gets the |
Hey there,
when using
guess_coord_axis
withlat
/lon
coords, the axis attribute is not added. The CF-Conventions states:See: https://cfconventions.org/Data/cf-conventions/cf-conventions-1.10/cf-conventions.html#latitude-coordinate
So, the current behavior is not wrong, but I think it would be nice to have the axis attributes generated for lat/lon as well for consistency.
The text was updated successfully, but these errors were encountered: