1 subroutine da_residual_ssmi_rv(iv, y, re, np_missing, np_bad_data, np_obs_used, np_available)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 type (iv_type), intent(in) :: iv ! Obs increment vector (O-B).
10 type (y_type) , intent(in) :: y ! y = H (xa)
11 type (y_type) , intent(inout) :: re ! Residual structure.
13 integer , intent(inout) :: np_available
14 integer , intent(inout) :: np_obs_used
15 integer , intent(inout) :: np_missing
16 integer , intent(inout) :: np_bad_data
18 type (bad_data_type) :: n_obs_bad
21 if (trace_use) call da_trace_entry("da_residual_ssmi_rv")
23 n_obs_bad % Speed % num = number_type(0, 0, 0)
24 n_obs_bad % q % num = number_type(0, 0, 0)
26 do n=1, iv%info(ssmi_rv)%nlocal
27 np_available = np_available + 2
29 re%ssmi_rv(n)%Speed = da_residual(n, 0, y%ssmi_rv(n)%Speed, &
30 iv%ssmi_rv(n)%Speed, n_obs_bad % Speed)
31 re%ssmi_rv(n)%tpw = da_residual(n, 0, y%ssmi_rv(n)%tpw, &
32 iv%ssmi_rv(n)%tpw, n_obs_bad % q )
35 np_missing = np_missing + n_obs_bad % Speed % num % miss + n_obs_bad % q % num % miss
36 np_bad_data = np_bad_data + n_obs_bad % Speed % num % bad + n_obs_bad % q % num % bad
37 np_obs_used = np_obs_used + n_obs_bad % Speed % num % use + n_obs_bad % q % num % use
39 if (trace_use) call da_trace_exit("da_residual_ssmi_rv")
41 end subroutine da_residual_ssmi_rv