da_calculate_grady_satem.inc

References to this file elsewhere.
1 subroutine da_calculate_grady_satem(iv, re, jo_grad_y)
2 
3    !----------------------------------------------------------------------
4    ! Purpose: Applies obs inverse on re-vector
5    !----------------------------------------------------------------------
6 
7    implicit none
8 
9 
10    type (ob_type), intent(in)     :: iv          ! Innovation vector.
11    type (y_type),  intent(inout)  :: re          ! Residual vector.
12    type (y_type),  intent(inout)  :: jo_grad_y   ! Grad_y(Jo)
13 
14 
15    integer                      :: n, k
16 
17    if (iv%num_Satem > 0) then
18       do n=1, iv%num_Satem
19             do k=1, iv%satem(n)%info%levels
20                if (iv%Satem(n)%thickness(k)%qc < obs_qc_pointer) then
21                   re%Satem(n)%thickness(k) = 0.0
22                end if
23 
24                jo_grad_y%Satem(n)%thickness(k) = -re%Satem(n)%thickness(k) / &
25                                          (iv%Satem(n)%thickness(k)%error * &
26                                            iv%Satem(n)%thickness(k)%error)
27             end do
28       end do
29    end if
30 
31 end subroutine da_calculate_grady_satem
32 
33