Add capability to do unit conversations to capgen#504
Add capability to do unit conversations to capgen#504climbfuji merged 45 commits intoNCAR:feature/capgenfrom
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:
|
gold2718
left a comment
There was a problem hiding this comment.
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
climbfuji
left a comment
There was a problem hiding this comment.
I realized that I forgot to hit the "submit review" button. Most of it is outdated by now, but for the records ...
…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
peverwhee
left a comment
There was a problem hiding this comment.
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
|
@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