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 type (iv_type), intent(in) :: iv ! Innovation vector.
10 type (y_type), intent(inout) :: re ! Residual vector.
11 type (y_type), intent(inout) :: jo_grad_y ! Grad_y(Jo)
12
13 integer :: n, k
14
15 if (trace_use_dull) call da_trace_entry("da_calculate_grady_satem")
16
17 do n=1, iv%info(satem)%nlocal
18 do k=1, iv%info(satem)%levels(n)
19 if (iv%satem(n)%thickness(k)%qc < obs_qc_pointer) then
20 re%satem(n)%thickness(k) = 0.0
21 end if
22
23 jo_grad_y%satem(n)%thickness(k) = -re%satem(n)%thickness(k) / &
24 (iv%satem(n)%thickness(k)%error * iv%satem(n)%thickness(k)%error)
25 end do
26 end do
27
28 if (trace_use_dull) call da_trace_exit("da_calculate_grady_satem")
29
30 end subroutine da_calculate_grady_satem
31
32