1 subroutine da_print_stats_metar(stats_unit, nu, nv, nt, np, nq, metar)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 integer, intent(in) :: stats_unit
10 integer, intent(inout) :: nu, nv, nt, np, nq
11 type (stats_metar_type), intent(in) :: metar
13 if (trace_use_dull) call da_trace_entry("da_print_stats_metar")
15 write(unit=stats_unit, fmt='(6a/)') &
23 write(unit=stats_unit, fmt='(a,i16,4i22)') &
24 ' Number: ', nu, nv, nt, np, nq
32 write(unit=stats_unit, fmt='((a,4(f12.4,2i5),e12.4,2i5))') &
33 ' Minimum(n,k): ', metar%minimum%u, metar%minimum%v, metar%minimum%t, &
34 metar%minimum%p, metar%minimum%q, &
35 ' Maximum(n,k): ', metar%maximum%u, metar%maximum%v, metar%maximum%t, &
36 metar%maximum%p, metar%maximum%q
37 write(unit=stats_unit, fmt='((a,4(f12.4,10x),e12.4,10x))') &
38 ' Average : ', metar%average%u/real(nu), metar%average%v/real(nv), &
39 metar%average%t/real(nt), metar%average%p/real(np), &
40 metar%average%q/real(nq), &
41 ' RMSE : ', sqrt(metar%rms_err%u/real(nu)), &
42 sqrt(metar%rms_err%v/real(nv)), &
43 sqrt(metar%rms_err%t/real(nt)), &
44 sqrt(metar%rms_err%p/real(np)), &
45 sqrt(metar%rms_err%q/real(nq))
47 if (trace_use_dull) call da_trace_exit("da_print_stats_metar")
49 end subroutine da_print_stats_metar