Skip to content

Commit

Permalink
Correct scattering index and enable error inflation in ATMS data, (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjunj authored Dec 12, 2024
1 parent 6fd4bd5 commit 0921251
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions src/gsi/clw_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1961,6 +1961,7 @@ subroutine ret_amsua(tb_obs,nchanl,tsavg5,zasat,clwp_amsua,ierrret,scat)
! Declare local variables
real(r_kind) :: d0, d1, d2, coszat
! real(r_kind) :: c0, c1, c2
real(r_kind) :: tb890 = zero


coszat=cos(zasat)
Expand All @@ -1979,9 +1980,18 @@ subroutine ret_amsua(tb_obs,nchanl,tsavg5,zasat,clwp_amsua,ierrret,scat)
endif

if (present(scat)) then
scat=-113.2_r_kind+(2.41_r_kind-0.0049_r_kind*tb_obs(1))*tb_obs(1) &
+0.454_r_kind*tb_obs(2)-tb_obs(15)
scat=max(zero,scat)
if (nchanl == 15) then
! AMSU-A
tb890 = tb_obs(15)
else if (nchanl == 22) then
! ATMS
tb890 = tb_obs(16)
endif
if (tb890 > zero) then
scat=-113.2_r_kind+(2.41_r_kind-0.0049_r_kind*tb_obs(1))*tb_obs(1) &
+0.454_r_kind*tb_obs(2)-tb890
endif
scat=max(zero,scat)
end if

end subroutine ret_amsua
Expand Down
2 changes: 1 addition & 1 deletion src/gsi/qcmod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3670,7 +3670,7 @@ subroutine qc_amsua(nchanl,is,ndat,nsig,npred,sea,land,ice,snow,mixed,luse, &
ework = ework+min(0.002_r_kind*sfc_speed**2*error0(i), 0.5_r_kind*error0(i))
clwtmp=min(abs(clwp_amsua-clw_guess_retrieval), one)
ework = ework+min(13.0_r_kind*clwtmp*error0(i), 3.5_r_kind*error0(i))
if (scatp>9.0_r_kind .and. nchanl==15) then
if (scatp>9.0_r_kind) then
ework = ework+min(1.5_r_kind*(scatp-9.0_r_kind)*error0(i), 2.5_r_kind*error0(i))
end if
ework=ework**2
Expand Down

0 comments on commit 0921251

Please sign in to comment.