-
Notifications
You must be signed in to change notification settings - Fork 1
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 ACCESS-OM3 builder #152
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #152 +/- ##
==========================================
- Coverage 97.20% 96.64% -0.57%
==========================================
Files 9 9
Lines 573 596 +23
==========================================
+ Hits 557 576 +19
- Misses 16 20 +4 ☔ View full report in Codecov by Sentry. |
Thanks for agreeing to review @anton-seaice. Don't worry about all the new files in |
bb99122
to
bbd8b12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to work like expected (https://github.com/anton-seaice/sandbox/blob/171f8103d0140d8b98e25637e500d2b8501ef00c/cat_om3_builder.ipynb)
I made a datastore using a CICE6+MOM6 config, and another usign CICE6+MOM6+WW3 and they appear to load, have variables and can access the data etc
variable_units_list, | ||
) = parse_access_ncfile(file) | ||
|
||
if ("mom6" in filename) or ("ww3" in filename): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want a different realm for ocean-waves ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. I don't know... The allowable vocab we have for realms atm follows CMIP6, which doesn't include a specific "waves" realm. We could add one, but that would require updating the schema, which is a little more work. The easiest route is just to say that ocean waves are part of the ocean (which is true I guess...).
But if you feel strongly, I'd be happy to add a wave
realm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The obvious advantage to having a wave
realm is that you'd be able to filter the catalog for only products with waves
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel strongly at all, it feels like bigger question than this review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deferring to #155
Yeah, the WW3 data contains no time bounds info, so when there is only one time step per file there's no way to determine what the frequency is and it assumes fixed frequency. I could still add strings for the start and end dates in this case? In which case we'd have something like:
|
Does it make more sense to add this to the WW3 output? |
It would definitely be better to have this in the output, but that requires some automated postprocessing (unless it can be configured in WW3?). These aren't the first files to be missing time bounds and they won't be the last so some sensible default behaviour is probably still needed |
It doesn't look like its configurable. A code change shouldn't be too hard though. We will need to dome something for time frequency eventually because at the moment there is no way to know if the output is daily or monthly (or something else), except for looking in Adding some sort of start and end date handling should improve searching. |
With 1f613a7, we now parse the start and end dates from the WW3 files (but they are the same...) |
This seems to work now. We've added a different annoyance, which is the mom static file now produces a 'start_date' and 'end_date' in the catalog. But that is due to a quirk of the source file, not this builder :) |
I raised COSIMA/access-om3#110 to consider the missing time_bounds in WW output |
Yeah, there isn't really anything we can do about data that's missing metadata or saved in a strange way. I think adding the start and end date whenever there is a time axis is the most defensible approach, otherwise we might be throwing away potentially useful info |
Thanks for a thorough review @anton-seaice |
This PR adds a builder class for ACCESS-OM3 data. Closes #151