-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spectrally-resolved output from RRTMG_LW #137
Comments
Great, sounds like a good start. A couple things to note:
|
We'll also need to think about the user-facing part of the wrapper. What do you want the new diagnostic to look like? I can imagine implementing a simple test to see if the spectrally decomposed TOA flux adds up to the OLR. |
Thanks @brian-rose ! That's helpful and also sounds like a sensible test to implement. I'm just putting together a PR now, but I'm having a bit of trouble building All of the tests pass fine
|
This is expected if you If you |
Great! That works! :) I'm just putting a test together then will submit a PR. Something is being outputted, and the EDIT: I need to double check the |
Following much Twitter conversation(!), I think it would be useful to try and code it such that the spectral band fluxes are outputted from RRTMG in addition to the total flux. I'm thinking particularly about the LW for now, but perhaps this could be expanded.
Currently, as pointed out by @brian-rose, climlab doesn't give these spectral diagnostics because they're not calculated in the fortran code. However, I think that it should be possible to get the OLR as a function of the wavenumber at band center without too much extra code.
I think that the relevant loop over bands occurs at this line in
rrtm/_rrtmg_lw/rrtmg_lw_v4.85/gcm_model/src/rrtmg_lw_rtrnmc.f90
:Then later on in the loop, there's a bit of code which calculates the longwave diagnostics, eg
totuflux
.So as far as I can tell, it's just a matter of adding a new variable like
totuflux_sr
(Spectrally Resolved) in this loop and then following that back through the code until you get to the Python interface.I'm not great with fortran, but can start trying this today and see where I get...
The text was updated successfully, but these errors were encountered: