-
Notifications
You must be signed in to change notification settings - Fork 150
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
Upgrade Rttov13 + WRF changes #367
Conversation
Here I have some before-after plots comparing to my script that uses the python interface to RTTOV. I create observations close to every gridpoint of the model, DART computes the radiance from an interpolation of the state. python-RTTOV uses gridpoint values/columns as input, so the left is naturally smoother. The images indicate that the changes make sense. For WV there is still a visible difference for some gridpoints. Before-image VISAfter-image VISAfter-image WV |
by the way, really nice catch on the inverted column(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Lukas,
This is great work to get the rttov13 interface up and running.
For the obs_def_rttov13_mod.f90, at the moment git is interpreting this as a git mv
so
obs_def_rttov_mod.f90 no longer exists in this branch.
Because we have people using rttov 12, for this pull request I'd like to have
obs_def_rttov_mod.f90
obs_def_rttov13_mod.f90
I think this makes clearer if we do depreciate rttov12 in a future release.
The mkmf.template can have a VERSION variable so we do not need two mkmf.template.rttov for each compiler:
e.g.
RTTOV_VERSION = 13
RTLIBS = -lrttov$(RTTOV_VERSION)_wrapper
I can go ahead and make these two changes if you are comfortable with me editing your branch.
Cheers,
Helen
models/wrf/model_mod.f90
Outdated
@@ -7402,7 +7402,7 @@ subroutine fill_default_state_table(default_table) | |||
'UPDATE ', & | |||
'999 ' /) | |||
row = row+1 | |||
default_table(:,row) = (/ 'T ', & | |||
default_table(:,row) = (/ 'THM ', & |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note, T vs THM is a wrf v3 to v4 issue. T is prognostic in v4.
Inside WRF, use_theta_m=0 for T= THM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean THM is prognostic in v4. The WRF userguide says
The prognostic variable for temperature is moist potential temperature by default.
And if you set use_theta_m=0 then THM is the dry potential temperature and happens to be the same as T.
But if you update T by assimilation then this update is not used by the forecast model since only THM is prognostic but not T.
The quanties needed for rttov are avaialable in chemistry_quantities_mod.f90 ocean_quantities_mod.f90 land_quantities_mod.f90
THM is prognostic in WRF v4 The prognostic variable for temperature is moist potential temperature by default. And if you set use_theta_m=0 then THM is the dry potential temperature and happens to be the same as T. But if you update T by assimilation then this update is not used by the forecast model since only THM is prognostic but not T.
I'm splitting the WRF and RTTOV parts of this pull request. The WRF changes are on https://github.com/NCAR/DART/tree/wrf-thm |
This has rttov which we probably do not want in the default input.nml for wrf
wrf changes are on branch wrf-thm
replaced html references with readthedocs links
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
Splitting the WRF updates to a separate pull request to support wrf3 and wrf4 users.
Description:
Edit (@hkershaw-brown) WRF changes moved to https://github.com/NCAR/DART/tree/wrf-thm
Fixes issue
Types of changes
Documentation changes needed?
Tests
Checklist for merging
Testing Datasets
wrfout state, expected output in netcdf format, obs_seq.in