Add code for cloud-top height diagnostic#485
Conversation
Paul Barrett (paul-barrett)
left a comment
There was a problem hiding this comment.
seems fine, from the perspective of this one DIAG, but should we expand use of rmdi to other DIAGS in this (and other?) routine>
| map_w3 ) | ||
|
|
||
| use science_conversions_mod, only: feet_to_metres | ||
| use missing_data_mod, only: rmdi |
There was a problem hiding this comment.
surprised to see this is the first instance of rmdi in this set of diags. Should we be extending this to be used in other output in a separate PR?
| ! cld_top_altitude (in kilofeet) | ||
| if (.not. associated(cld_top_altitude, empty_real_data) ) then | ||
| ! As a default, set cloud-top to missing data | ||
| cld_top_altitude(map_2d(1)) = rmdi |
There was a problem hiding this comment.
should this setting of data to missing be replicated elsewhere in this routine?
iboutle
There was a problem hiding this comment.
Yeah, possibly something to revisit in a separate PR - I can't remember what Cyril's reasoning was for doing it how he did originally!
Pierre Siddall (Pierre-siddall)
left a comment
There was a problem hiding this comment.
Thanks Adrian Lock (@Adrian-Lock), as this is a small change and the code of the added do loop looks fine , I'm happy to put this through testing.
126835a
into
MetOffice:main
Add code for cloud-top height diagnostic, mirroring existing cloud-base height
PR Summary
Sci/Tech Reviewer: Paul Barrett (@paul-barrett) -->
Code Reviewer: Pierre Siddall (@Pierre-siddall)
Only difference in how this new cloud-top height diagnostic is treated compared to cloud-base height, is in setting cloud-free columns to missing data
cld_top_altitude(map_2d(1)) = rmdirather than "to beyond top of model" as is done for cloud base:
cld_base_altitude(map_2d(1)) = 1.1_r_def * &z_asl_centre_of_levels(nlayers) * &m_to_kfeetAs an example that the new diagnostic works, I've added it to the rose stem seukv job:


which can be compared with the cloud-base height diagnostic:
These are plotted using ngview which means the colour scale is unhelpful, because it doesn’t recognise missing data, but at least the cloud is in the right place (compared to the CBH) and the max of 32.3 kfeet is plausible.
Code Quality Checklist
Testing
trac.log
Test Suite Results - lfric_apps - main905c_cth_diagnostic/run3
Suite Information
Task Information
✅ succeeded tasks - 1185
Security Considerations
Performance Impact
AI Assistance and Attribution
Documentation
PSyclone Approval
Sci/Tech Review
(Please alert the code reviewer via a tag when you have approved the SR)
Code Review