Add Changes Related to HAFS TDR SuperOb#1007
Conversation
…sed in upcoming HAFSv2.2
|
Regression Test performed on Hera: 100% tests passed, 0 tests failed out of 6 Total Test time (real) = 7197.93 sec |
|
@JingCheng-NOAA could you start a ctest on WCOSS? |
I tried many times on WCOSS2 but seems like I don't have right permission to all the files related to regression tests. |
|
@yonghuiweng or @XuLu-NOAA could you help run a ctest on WCOSS2? |
|
WCOSS2 Ctests Install All tests Passed on Cactus. Question: Do either of the HAFS tests exercise the code modified by this PR? We need confirmation that the changes in the PR function as intended. Recommendation: Echo the contents of namelist |
|
Regression performed on WCOSS2: 100% tests passed, 0 tests failed out of 6 Total Test time (real) = 7739.26 sec |
|
Thank you Russ and Xu. |
RussTreadon-NOAA
left a comment
There was a problem hiding this comment.
Minor comments.
|
@RussTreadon-NOAA and @XuLu-NOAA Thank you for completing ctest on WCOSS2. |
There was a problem hiding this comment.
Pull request overview
This PR adds a configurable switch to control whether Tail Doppler Radar (TDR) radial-velocity observations are thinned along the radar beam, enabling users to bypass the existing hard-coded along-beam thinning when ingesting already super-obbed TDR BUFR input (as expected for HAFSv2.2).
Changes:
- Introduces a new
obs_inputnamelist optionl_tdr_thin_alongbeam(default.true.) to toggle along-the-beam thinning. - Updates TDR processing in
read_radarto conditionally apply the 3 km along-beam thinning logic based onl_tdr_thin_alongbeam. - Wires the new flag through
obsmodandgsimodso it can be set via the existing namelist path.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/gsi/read_radar.f90 |
Applies conditional logic to bypass hard-coded along-beam thinning for TDR Vr when configured. |
src/gsi/obsmod.F90 |
Adds the new public module logical and default initialization for l_tdr_thin_alongbeam. |
src/gsi/gsimod.F90 |
Exposes l_tdr_thin_alongbeam via the obs_input namelist and updates inline namelist documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if(l_tdr_thin_alongbeam) then | ||
| ! Select data every 3 km along each beam | ||
| if(MOD(INT(tdr_obs(1,k)-tdr_obs(1,1)),3000) < 100)then | ||
| if(tdr_obs(3,k) >= 800.) then | ||
| nmissing=nmissing+1 !xx | ||
| else | ||
| ii=ii+1 | ||
| dopbin(ii)=tdr_obs(3,k) | ||
| thisrange=tdr_obs(1,k) | ||
|
|
||
| call getvrlocalinfo(thisrange,thisazimuth,this_stahgt,aactual,a43,selev0,celev0, & | ||
| rlon0,clat0,slat0,r8,r89_5,nsubzero,ii,z(ii),elev(ii),elat8(ii), & | ||
| elon8(ii),glob_azimuth8(ii)) | ||
| end if | ||
| else | ||
| ntdrvr_thin1=ntdrvr_thin1+1 | ||
| endif | ||
| else | ||
| if(tdr_obs(3,k) >= 800.) nmissing=nmissing+1 !xx | ||
| if(tdr_obs(3,k) < 800.) then |
There was a problem hiding this comment.
@JingCheng-NOAA : What do you think about this comment from Copilot? The intent of the suggested change is to improve readability of the run time log.
| @@ -1101,7 +1102,7 @@ module gsimod | |||
| ! allows use of archived prepbufr files) | |||
|
|
|||
| namelist/obs_input/dmesh,time_window_max,time_window_rad, & | |||
| ext_sonde,l_foreaft_thin,hofx_2m_sfcfile, ignore_2mQM | |||
| ext_sonde,l_foreaft_thin,l_tdr_thin_alongbeam,hofx_2m_sfcfile, ignore_2mQM | |||
There was a problem hiding this comment.
@JingCheng-NOAA : Another Copilot suggestion to improve readability. What do you think?
|
@JingCheng-NOAA : Agreed. We do not need to change the HAFS GSI ctests ith this PR. A separate issue and PR is sufficient. Failure to keep GSI ctests in sync with added or modified GSI functionality runs the risk of these changes being unknowingly broken by other PRs. |
|
@JingCheng-NOAA : Good suggestions from copilot. Please consider making the suggested changes. |
|
Thanks! will update the code accordingly.
…On Thu, May 21, 2026 at 12:04 PM RussTreadon-NOAA ***@***.***> wrote:
*RussTreadon-NOAA* left a comment (NOAA-EMC/GSI#1007)
<#1007 (comment)>
@JingCheng-NOAA <https://github.com/JingCheng-NOAA> : Good suggestions
from copilot. Please consider making the suggested changes.
—
Reply to this email directly, view it on GitHub
<#1007 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/BAHEWIP5WMOQYLSSDLEDAYL434SGZAVCNFSM6AAAAACY5B6O6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DKMJQGEYTQMBZGU>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
…statement related to along the beam thinning. Rephrase the namelist documentation for l_tdr_thin_alongbeam
| if(l_tdr_thin_alongbeam) then | ||
| write(6,*)'READ_RADAR: # data removed by thinning along the beam ntdrvr_thin1=', ntdrvr_thin1 | ||
| else | ||
| write(6,*) 'READ_RADAR: # offline superob applied on TDR, thinning along the beam is disabled' |
There was a problem hiding this comment.
@JingCheng-NOAA : Another improve readability suggestion from Copilot. What do you think?
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
@JingCheng-NOAA : 8ac349a adds my recommended change (i.e., echo As expected, WCOSS2 (Cactus) ctests still pass after making change 8ac349a |
|
Accepted, and the corresponding change has been made |
|
@JingCheng-NOAA could you run a ctest for a quick sanity check? otherwise I think the PR is in good shape to merge. |
|
GSI ctests Install Gaea C6 Ursa WCOSS2 (Dogwood) All tests Passed on Gaea C6, Ursa, and WCOSS2 (Dogwood) |
|
@RussTreadon-NOAA Thank you for the ctest. |
|
Ctests passed on Hera |
Description
The upcoming HAFSv2.2 will assimilate super-obbed TDR observations. To support this, the existing along-the-beam thinning function will be bypassed if the input TDR BUFR data is already super-obbed. This PR introduces a new namelist option,
l_tdr_thin_alongbeam, allowing users to explicityly toggle along-the-beam thinning on or off.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Checklist