NCAR / DART

Data Assimilation Research Testbed
https://dart.ucar.edu/
Apache License 2.0
196 stars 145 forks source link

Bug: clouds flipped up/down in RTTOV for IR/VIS #365

Closed lkugler closed 1 year ago

lkugler commented 2 years ago

Hi Helen, I showed you an inconsistency yesterday (figure 1: before change), that is, differences between the python interface (my script) and the DART(Fortran) interface to RTTOV. Yesterday I thought my script is wrong but now I think differently. I looked at a gridpoint with a large difference (0.29 vs 0.96 reflectance) and the cloud water/ice profiles seem to be flipped up-down, because

  1. The profiles initially showed ice clouds lower than water clouds, which is very suspicious (colder ice clouds should be above), see image 2
  2. The clouds were quite high in the stratosphere where no clouds should be (figure 2)
  3. I unflipped the arrays in DART(Fortran) and now there are almost no differences anymore (figure 3: after change)

Reason

Summary

I'm sorry that this bug slipped through testing in 2020. I just found it by calculating obs on a grid and comparing the output from the two interfaces. Lukas

hkershaw-brown commented 2 years ago

Thanks for this bug report Lukas

edit: @hkershaw-brown review MPAS toa.

lkugler commented 2 years ago

The changes are here (commit)