1 subroutine da_transform_xtoy_airsr (grid, iv, y)
3 !-------------------------------------------------------------------------
4 ! Purpose: Does transforms from model space to AIRS locations
5 ! Updated for Analysis on Arakawa-C grid
6 ! Author: Syed RH Rizvi, MMM/ESSL/NCAR, Date: 10/22/2008
7 !-------------------------------------------------------------------------
11 type (domain), intent(in) :: grid ! gridded analysis increment.
12 type (iv_type), intent(in) :: iv ! Innovation vector (O-B).
13 type (y_type), intent(inout) :: y ! y = h (grid%xa) (linear)
15 integer :: n ! Loop counter.
17 real, allocatable :: t(:,:)
18 real, allocatable :: q(:,:)
20 if (trace_use_dull) call da_trace_entry("da_transform_xtoy_airsr")
22 allocate (t(iv%info(airsr)%max_lev,iv%info(airsr)%n1:iv%info(airsr)%n2))
23 allocate (q(iv%info(airsr)%max_lev,iv%info(airsr)%n1:iv%info(airsr)%n2))
25 call da_interp_lin_3d (grid%xa%t, iv%info(airsr), t)
26 call da_interp_lin_3d (grid%xa%q, iv%info(airsr), q)
28 do n=iv%info(airsr)%n1,iv%info(airsr)%n2
29 y%airsr(n)%t(:) = t(1:size(y%airsr(n)%t),n)
30 y%airsr(n)%q(:) = q(1:size(y%airsr(n)%q),n)
36 if (trace_use_dull) call da_trace_exit("da_transform_xtoy_airsr")
38 end subroutine da_transform_xtoy_airsr