Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

CAM5 - RRTMG - archiving upwelling/downwelling SW/LW flux at each model levels

Hello,
I am using CAM5 with RRTMG radiation package.I wanted the upward/downward shortwave (SW) and longwave (LW) fluxes at each model levels (30 model levels). There are no output SW/LW flux defined variables.Is it possible to output the upwelling and downwelling SW/LW fluxes at all 30 model mid levels? basically, I need them to calculate the net radiative fluxes at each model levels. At model top I have FSNT, FLNT. So, similar variables I need for each model level.Many ThanksAngshuman
 

eaton

CSEG and Liaisons
This can't be done without code modifications.  If you look in rrtmg/radiation.F90 the radiation_tend subroutine has calls to rad_rrtmg_sw(.., su, sd, ...) and rad_rrtmg_lw(.., lu, ld).  The variables su, sd, lu, and ld contain the information you're looking for except that it is spectrally resolved, and I believe the fluxes are at layer interfaces rather than midpoints.
 

eaton

CSEG and Liaisons
This can't be done without code modifications.  If you look in rrtmg/radiation.F90 the radiation_tend subroutine has calls to rad_rrtmg_sw(.., su, sd, ...) and rad_rrtmg_lw(.., lu, ld).  The variables su, sd, lu, and ld contain the information you're looking for except that it is spectrally resolved, and I believe the fluxes are at layer interfaces rather than midpoints.
 
Top