-
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
Add cf.bounds
?
#210
Comments
I think its a good idea! Wouldn't it be the opposite? I.e.: |
Yes I think you're right, it's more consistent with the other attributes. |
👍 I like @aulemahal's suggestion. But shouldn't we use our CF names? so |
Sounds good. Does that mean that we only allow bounds associated with supported CF coordinates (i.e., longitude, latitude, time, vertical)? |
Also, if we use CF names I think there could be multiple bounds associated with the same CF name, so values should be lists. |
Hum, restricting to coordinates seems too strict, may be keys could be the standard names? I believe it makes no difference for the common trio longitude, latitude, time. |
One issue with
For example with staggered grids, I think one could have multiple bounds associated with the same key and the dataset is still CF-compliant.
Another example could be a dataset with multiple time axes and coordinates (e.g., daily and monthly means). |
Hmm, I'm not sure I fully understand this one. You mean that the
Oh I see the misunderstanding! I was thinking of the dataarray accessor, where this mapping should be 1 to 1 (like in your example). It is true, this doesn't hold at the dataset level. |
We actually do this for Though now I wonder if we shouldn't just always add the variable name too. For this dataset |
So the keys for Maybe we should change a bit |
-0.5 from me because I read |
Here's a harder question (maybe): Should the dict have variable names as values or actual DataArrays?
|
I think this is the way to go! |
Should we add a
bounds
attribute and makeobj.cf
show all bounds?If yes, how do you think it should look like?
Maybe:
{"bound_lon": "lon", "bound_lat": "lat"}
I don't think you can have a bound variable associated with multiple variables, so both keys and values can be
str
.For example, we could use
cf.bounds
to take care of bounds inrename_like
...The text was updated successfully, but these errors were encountered: