-
Notifications
You must be signed in to change notification settings - Fork 2
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
Potentially incorrect representation of variables in data cube extension #52
Comments
CF-xarray parses the file as:
|
You're saying CF-xarray is able to parse things correctly? I mean with regards to the bounds. What are your thoughts on the missing variables I mentioned above? Should we remove the lines I pointed to as the likely culprit? |
yes, I got that output by doing
Need to look into it more. |
Took a bit of time to review this and refresh my memory. VariablesI decided to put time, lon, lat in the dimensions attributes instead of the variables. I mean, they could be in both, but I didn't see how this would be useful from a catalogue perspective, where searching for variables is the primary usage. Open to counter arguments. BoundsAgree with the second point. I looked at how CF-xarray does it and will prepare a small PR to port the logic here, and add a test. |
I think we can leave lat, lon and time as both dimensions and variables, in case a future use case needs this comprehensive description provided by the data cube extension. |
But doesn't matter to me. David, you choose. |
I'll ask around to see what people think. |
For reference the Microsoft collection lists lat, lon time as dimensions only. |
Consider the example at: https://redoak.cs.toronto.edu/stac/collections/CMIP6_UofT/items/CMIP_EC-Earth-Consortium_EC-Earth3_historical_r21i1p1f1_Amon_clt_gr
The cube variables listed are:
But, I see two problems:
time
,lat
,lon
are missing. I think this has to do with these lines. I don't think this is correct.@huard you wrote the data cube extension helper codes, what are your thoughts on this?
The text was updated successfully, but these errors were encountered: