-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
setting variables named in CF attributes as coordinate variables #4215
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
Comments
I agree with #3689 that it makes the most sense to have
My one concern with #2844 is clarifying the role of |
Sounds good to me!
I don't think this is necessary. It's easy to explicitly set or reset coordinates afterwards if desired.
I think we should probably ensure that xarray always propagates |
Is that "putting the variables in these attributes in
I tend to think of uncertainties and status flags as important for the interpretation of the associated variables that should stay with the data variables unless a decision is explicitly made to drop them. On the other hand, since XArray seems to associate coordinates with dimensions rather than with variables, I can see why this might be less than desirable. This argument would also apply to
Should this be part of #2844 or should preserving |
I think this is "we should put things in
The only way to link variables in xarray objects is to set them as
Separate PR. It will be a reasonably big change throughout the code base. |
I think this can be closed thanks to @DWesl |
This came up in #2844 by @DWesl (see also #3689)
Currently we have
decode_coords
which sets variables named inattrs["coordinates"]
as coordinate variables.There are a number of other CF attributes that can contain variable names.
As in #3689 it's hard to see why a lot of these variables named in these attributes would be useful as "data variables".
Question: Should we allow
decode_coords
to control whether variables mentioned in these attributes are set as coordinate variables?cc @jthielen
The text was updated successfully, but these errors were encountered: