Closed danielphilipp closed 1 year ago
To be honest I think we should keep this pull request. It's clearly the correct choice to have Rayleigh disabled within RTTOV and if that causes problems in ORAC then it's within ORAC that they should be fixed, the current 'add-then-remove' method makes me very uneasy...
I concur - 'add then remove' was done out of necessity. Now RTTOV lets us turn Rayleigh off, we should do that. It's on my list of things to sort out properly in the new year.
As discussed I implemented some changes to rttov_driver.F90:
calcrefl
andreflectance
arrays to ORAC and pass them to RTTOV as they are requested by RTTOV whenopts % rt_ir % addsolar = .true.
. If not passig them, the error is "calcrefl and reflectance parameters required" (rttov13/src/main/rttov_direct.F90 L318). Some compilers seem to implicitly define those arrays and there is no error thrown but with others there is. To solve this explicitly define and pass them to RTTOV. Setreflectance
to 0. as the surface reflectance is explicitly handled by the foreward model. Setcalcrefl
to false so that we can provide our own reflectance.