da_residual_ssmi_rv.inc

References to this file elsewhere.
1 subroutine da_residual_ssmi_rv(iv, y, re, np_missing, np_bad_data, np_obs_used, np_available)
2 
3    !-----------------------------------------------------------------------
4    ! Purpose: TBD
5    !-----------------------------------------------------------------------
6 
7    implicit none
8 
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.
12 
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
17 
18    type (bad_data_type) :: n_obs_bad
19    integer              :: n
20 
21    if (trace_use) call da_trace_entry("da_residual_ssmi_rv")
22 
23    n_obs_bad % Speed % num = number_type(0, 0, 0)
24    n_obs_bad % q % num     = number_type(0, 0, 0)
25 
26    do n=1, iv%info(ssmi_rv)%nlocal
27       np_available = np_available + 2
28 
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      )
33    end do
34 
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
38 
39    if (trace_use) call da_trace_exit("da_residual_ssmi_rv")
40 
41 end subroutine da_residual_ssmi_rv
42 
43