-
Notifications
You must be signed in to change notification settings - Fork 64
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 capability to do unit conversations to capgen #504
Add capability to do unit conversations to capgen #504
Conversation
Last week: "meet with us and share how you would have approached it" |
Fair point. |
@DomHeinzeller @gold2718 @peverwhee |
It looks like you added a
This has been recognized for quite a while. I know there was a discussion in a Google doc many years ago but I no longer have access to that (if I could even remember where it was). However @grantfirl started this back up in August and I would like to see some progress on this so please refer to the Discussion related to vertical coordinate interoperabilty. I have added a bit of history to that. |
Hey @gold2718 @DomHeinzeller @peverwhee
Questions/Comments/ToDo:
|
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.
See comments / questions below.
Also, note that the current var_action unit test suite does not all pass. This suite needs a careful look to make sure it is still correct and also should be expanded for more complex tests.
…al dimension name
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 realized that I forgot to hit the "submit review" button. Most of it is outdated by now, but for the records ...
In general, it would be nice to have more inline documentation in form of comments and/or docstrings, especially for newly added code. |
…only: error_unit'
…be consistent with how the DEBUG checking is implemented in PR NCAR#512
@DomHeinzeller I added some more inline documentation and addressed your comments. Since you reviewed, I refactored a bit to be more closely aligned with #512. |
…ked_data_ci_tests ccpp-prebuild: add blocked data tests and run prebuild tests in CI
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.
Thanks Dustin! A couple things.
Also: would it make sense to rename the var_action_test to something else? var_compatibility_test?
@peverwhee Comments addressed. Thanks! |
…ature_capgen_unit_conversions
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.
looks good!
@mwaxmonsky @gold2718 When you have time, can you please review this PR? Thanks very much in advance. |
Pinging all remaining reviewers. This PR has sufficient approvals and we are planning to merge this PR on Friday, January 12 2024. |
This PR adds automatic conversions for supported unit and type transforms.
Also, included is a new ccpp variable property to indicate a scheme variables vertical orientation vertical, top_at_one.
As default, top_at_one is set to .false.(GFS ordering convention).
Adding top_at_one = .true. to a variable in a schemes metadata file will trigger automatic array flipping:
The var_aciton_test was modified to test these new functionalities:
Addresses #329 and #403
Conversions supported:
https://github.com/NCAR/ccpp-framework/blob/main/scripts/conversion_tools/unit_conversion.py