1 subroutine da_print_stats_gpspw(stats_unit, ntpw, Gpspw)
3 !-----------------------------------------------------------------------
5 !-----------------------------------------------------------------------
9 integer, intent(in) :: stats_unit
10 integer, intent(inout) :: ntpw
11 type (stats_gpspw_type), intent(in) :: gpspw
13 if (trace_use_dull) call da_trace_entry("da_residual_gpspw")
16 if (use_gpspwObs) then
17 write(unit=stats_unit, fmt='(a/)') ' var tpw(cm) n'
18 else if (use_gpsztdObs) then
19 write(unit=stats_unit, fmt='(a/)') ' var ztd(cm) n'
22 write(unit=stats_unit, fmt='(a,i14)') ' Number: ', ntpw
24 write(unit=stats_unit, fmt='(a, f12.4,i5)') &
25 ' Minimum(n): ', gpspw%minimum%tpw%value, &
26 gpspw%minimum%tpw%n , &
27 ' Maximum(n): ', gpspw%maximum%tpw%value, &
29 write(unit=stats_unit, fmt='(a, f12.4,5x)') &
30 ' Average : ', gpspw%average%tpw/real(ntpw), &
31 ' RMSE : ', sqrt(gpspw%rms_err%tpw/real(ntpw))
34 if (trace_use_dull) call da_trace_exit("da_residual_gpspw")
36 end subroutine da_print_stats_gpspw