1 subroutine da_check_xtoy_adjoint_radar(iv, y, adjtest_lhs, pertile_lhs)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 type (iv_type), intent(in) :: iv ! obs. inc. vector (o-b).
10 type (y_type) , intent(inout) :: y ! y = h (xa)
11 real , intent(inout) :: adjtest_lhs, pertile_lhs
13 integer :: n, k ! Loop counter.
15 if (trace_use) call da_trace_entry("da_check_xtoy_adjoint_radar")
17 do n=iv%info(radar)%n1, iv%info(radar)%n2
18 if (iv%info(radar)%proc_domain(1,n)) then
19 do k=1, iv%info(radar)%levels(n)
20 adjtest_lhs = adjtest_lhs + &
21 (y%radar(n)%rv(k)/typical_rv_rms)**2 + (y%radar(n)%rf(k)/typical_rf_rms)**2 + &
22 (y%radar(n)%rrn(k)/typical_qrn_rms)**2 + (y%radar(n)%rsn(k)/typical_qsn_rms)**2 + &
23 (y%radar(n)%rgr(k)/typical_qgr_rms)**2 + (y%radar(n)%rqv(k)/typical_q_rms)**2
27 do k=1, iv%info(radar)%levels(n)
28 pertile_lhs = pertile_lhs + &
29 (y%radar(n)%rv(k)/typical_rv_rms)**2 + (y%radar(n)%rf(k)/typical_rf_rms)**2 + &
30 (y%radar(n)%rrn(k)/typical_qrn_rms)**2 + (y%radar(n)%rsn(k)/typical_qsn_rms)**2 + &
31 (y%radar(n)%rgr(k)/typical_qgr_rms)**2 + (y%radar(n)%rqv(k)/typical_q_rms)**2
33 y%radar(n)%rv(k)= y%radar(n)%rv(k) / typical_rv_rms ** 2
34 y%radar(n)%rf(k)= y%radar(n)%rf(k) / typical_rf_rms ** 2
35 y%radar(n)%rrn(k)= y%radar(n)%rrn(k) / typical_qrn_rms ** 2
36 y%radar(n)%rsn(k)= y%radar(n)%rsn(k) / typical_qsn_rms ** 2
37 y%radar(n)%rgr(k)= y%radar(n)%rgr(k) / typical_qgr_rms ** 2
38 y%radar(n)%rqv(k)= y%radar(n)%rqv(k) / typical_q_rms ** 2
42 end subroutine da_check_xtoy_adjoint_radar