Skip to content

Update calculation of time-averaged radiation variables#262

Merged
rhaesung merged 77 commits into
ufs-community:ufs/devfrom
grantfirl:feature/rad-fix_gjf
Oct 7, 2025
Merged

Update calculation of time-averaged radiation variables#262
rhaesung merged 77 commits into
ufs-community:ufs/devfrom
grantfirl:feature/rad-fix_gjf

Conversation

@grantfirl
Copy link
Copy Markdown
Collaborator

This PR replaces #241 since I think that @LarissaReames-NOAA no longer works for NOAA. The original description of hers follows and all credit goes to her for this work.

This PR fixes incorrect diagnostic output for fhzero-averaged radiation variables output in the weather model and computed from the CCPP 'fluxr' array. Presently, there is a significant "sawtooth" appearance to these fields when output from ufs-weather-model (such as dswrf_ave and ulwrf_avetoa) when we expect smoother lines with jumps only at fhzero diagnostic reset times. Here is an example of the present (OLD) result and the result from the current PR (FIX) of DWRF_AVE from a 24-hour control C48 weather model regression test forecast.

iTerm2 RyhzD1 rads_fhzero6_new

To accomplish this, I moved all fluxr computations from the rrtmg_post and rrtmgp_post routines to the dcyc2t3_run routine, thus it is called, and fluxr accumulates radiation values, at every large dynamics time step. I did my best to move documentation of the variables to the dcyc2t3_run header as well.

Issue(s) addressed

  • fixes an problem found in investigating ufs-weather-model/#1767

Testing

Ran full ufs-weather-model regression test suite on Hera. See log files here: /scratch1/NAGAPE/hpc-wof1/lreames/ufs-weather-model/tests/logs/log_hera. You can also see forecast output from these tests in /scratch1/NCEPDEV/stmp2/Larissa.Reames/FV3_RT/rt_4109245
All regression tests fail as sfcf*.nc files, as well as post-processed grib2 files as a result, are not identical. New weather model baselines will be necessary.

LarissaReames and others added 30 commits December 16, 2024 15:40
…rect sub-fhswr/fhlwr bucket radiation values
…: support multiple instances by making is_initialized a host-model variable
…ry.fv3.*: support multiple instances by making is_initialized a host-model variable"

This reverts commit 4c558e1.
This reverts commit 6b40c48.
This reverts commit 08857a8.
This reverts commit 73e032e.
@grantfirl
Copy link
Copy Markdown
Collaborator Author

@dustinswales @rhaesung @Qingfu-Liu I think that this is finally ready to go again. I merged in some fixes from @dustinswales and I needed to fix some things for running in debug mode related to optional arguments afterward. I've tested this in the SCM and the radiation diagnostics still "smooth out" in time.

@grantfirl grantfirl changed the title NEW: Update calculation of time-averaged radiation variables Update calculation of time-averaged radiation variables Aug 15, 2025
@jkbk2004
Copy link
Copy Markdown

jkbk2004 commented Oct 7, 2025

All tests ran successfully at ufs-community/ufs-weather-model#2660. @rhaesung @grantfirl can you go ahead to merge this pr?

@rhaesung rhaesung merged commit 0722a9d into ufs-community:ufs/dev Oct 7, 2025
3 checks passed
@grantfirl grantfirl mentioned this pull request Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.