da_transform_xtoy_qscat_adj.inc

References to this file elsewhere.
1 subroutine da_transform_xtoy_qscat_adj(iv, jo_grad_y, jo_grad_x)
2 
3    !-----------------------------------------------------------------------
4    ! Purpose: TBD
5    !-----------------------------------------------------------------------
6 
7    implicit none
8 
9    type (iv_type), intent(in)    :: iv          ! obs. inc vector (o-b).
10    type (y_type) , intent(in)    :: jo_grad_y   ! grad_y(jo)
11    type (x_type) , intent(inout) :: jo_grad_x   ! grad_x(jo)
12 
13    integer :: n        ! Loop counter.
14 
15    real, allocatable :: u(:,:)
16    real, allocatable :: v(:,:)
17 
18    if (trace_use_dull) call da_trace_entry("da_transform_xtoy_qscat_adj")
19 
20    allocate (u(1,iv%info(qscat)%n1:iv%info(qscat)%n2))
21    allocate (v(1,iv%info(qscat)%n1:iv%info(qscat)%n2))
22 
23    do n=iv%info(qscat)%n1,iv%info(qscat)%n2
24       u(1,n) = jo_grad_y%qscat(n)%u
25       v(1,n) = jo_grad_y%qscat(n)%v
26    end do
27 
28    call da_interp_lin_3d_adj (jo_grad_x%u, iv%info(qscat), u)
29    call da_interp_lin_3d_adj (jo_grad_x%v, iv%info(qscat), v)
30 
31    deallocate (u)
32    deallocate (v)
33 
34    if (trace_use_dull) call da_trace_exit("da_transform_xtoy_qscat_adj")
35 
36 end subroutine da_transform_xtoy_qscat_adj
37 
38