1 subroutine da_calculate_grady_ssmi_tb(iv, re, jo_grad_y)
3 !-------------------------------------------------------------------------
4 ! Purpose: Applies obs inverse on re-vector
5 !-------------------------------------------------------------------------
9 type (iv_type), intent(in) :: iv ! Ob Inc. structure.
10 type (y_type), intent(inout) :: re ! Residual structure.
11 type (y_type), intent(inout) :: jo_grad_y ! Grad_y(Jo)
15 if (trace_use_dull) call da_trace_entry("da_calculate_grady_ssmi_tb")
17 do n=1, iv%info(ssmi_tb)%nlocal
18 if (iv%ssmi_tb(n)%tb19v%qc < obs_qc_pointer) re%ssmi_tb(n)%tb19v = 0.0
19 jo_grad_y%ssmi_tb(n)%tb19v = - re%ssmi_tb(n)%tb19v / (iv%ssmi_tb(n)%tb19v%error * iv%ssmi_tb(n)%tb19v%error)
21 if (iv%ssmi_tb(n)%tb19h%qc < obs_qc_pointer) re%ssmi_tb(n)%tb19h = 0.0
22 jo_grad_y%ssmi_tb(n)%tb19h = - re%ssmi_tb(n)%tb19h / (iv%ssmi_tb(n)%tb19h%error * iv%ssmi_tb(n)%tb19h%error)
24 if (iv%ssmi_tb(n)%tb22v%qc < obs_qc_pointer) re%ssmi_tb(n)%tb22v = 0.0
25 jo_grad_y%ssmi_tb(n)%tb22v = - re%ssmi_tb(n)%tb22v / (iv%ssmi_tb(n)%tb22v%error * iv%ssmi_tb(n)%tb22v%error)
27 if (iv%ssmi_tb(n)%tb37v%qc < obs_qc_pointer) re%ssmi_tb(n)%tb37v = 0.0
28 jo_grad_y%ssmi_tb(n)%tb37v = - re%ssmi_tb(n)%tb37v / (iv%ssmi_tb(n)%tb37v%error * iv%ssmi_tb(n)%tb37v%error)
30 if (iv%ssmi_tb(n)%tb37h%qc < obs_qc_pointer) re%ssmi_tb(n)%tb37h = 0.0
31 jo_grad_y%ssmi_tb(n)%tb37h = - re%ssmi_tb(n)%tb37h / (iv%ssmi_tb(n)%tb37h%error * iv%ssmi_tb(n)%tb37h%error)
33 if (iv%ssmi_tb(n)%tb85v%qc < obs_qc_pointer) re%ssmi_tb(n)%tb85v = 0.0
34 jo_grad_y%ssmi_tb(n)%tb85v = - re%ssmi_tb(n)%tb85v / (iv%ssmi_tb(n)%tb85v%error * iv%ssmi_tb(n)%tb85v%error)
36 if (iv%ssmi_tb(n)%tb85h%qc < obs_qc_pointer) re%ssmi_tb(n)%tb85h = 0.0
37 jo_grad_y%ssmi_tb(n)%tb85h = - re%ssmi_tb(n)%tb85h / (iv%ssmi_tb(n)%tb85h%error * iv%ssmi_tb(n)%tb85h%error)
40 if (trace_use_dull) call da_trace_exit("da_calculate_grady_ssmi_tb")
42 end subroutine da_calculate_grady_ssmi_tb