da_transform_xtoy_profiler_adj.inc
References to this file elsewhere.
1 subroutine da_transform_xtoy_profiler_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 :: model_u(:,:)
16 real, allocatable :: model_v(:,:)
17
18 if (trace_use_dull) call da_trace_entry("da_transform_xtoy_profiler_adj")
19
20 allocate (model_u(iv%info(profiler)%max_lev,iv%info(profiler)%n1:iv%info(profiler)%n2))
21 allocate (model_v(iv%info(profiler)%max_lev,iv%info(profiler)%n1:iv%info(profiler)%n2))
22
23 do n=iv%info(profiler)%n1,iv%info(profiler)%n2
24 model_u(1:iv%info(profiler)%levels(n),n) = jo_grad_y%profiler(n)%u(:)
25 model_v(1:iv%info(profiler)%levels(n),n) = jo_grad_y%profiler(n)%v(:)
26 end do
27
28 call da_interp_lin_3d_adj (jo_grad_x%u, iv%info(profiler), model_u)
29 call da_interp_lin_3d_adj (jo_grad_x%v, iv%info(profiler), model_v)
30
31 deallocate(model_u)
32 deallocate(model_v)
33
34 if (trace_use_dull) call da_trace_exit("da_transform_xtoy_profiler_adj")
35
36 end subroutine da_transform_xtoy_profiler_adj
37
38