da_print_stats_gpspw.inc
References to this file elsewhere.
1 subroutine da_print_stats_gpspw(stats_unit, ntpw, Gpspw)
2
3 !-----------------------------------------------------------------------
4 ! Purpose: TBD
5 !-----------------------------------------------------------------------
6
7 implicit none
8
9 integer, intent(in) :: stats_unit
10 integer, intent(inout) :: ntpw
11 type (stats_gpspw_type), intent(in) :: gpspw
12
13 if (trace_use_dull) call da_trace_entry("da_residual_gpspw")
14
15 if (ntpw > 0) then
16 write(unit=stats_unit, fmt='(a/)') ' var tpw(cm) n'
17
18 write(unit=stats_unit, fmt='(a,i14)') ' Number: ', ntpw
19
20 write(unit=stats_unit, fmt='(a, f12.4,i5)') &
21 ' Minimum(n): ', gpspw%minimum%tpw%value, &
22 gpspw%minimum%tpw%n , &
23 ' Maximum(n): ', gpspw%maximum%tpw%value, &
24 gpspw%maximum%tpw%n
25 write(unit=stats_unit, fmt='(a, f12.4,5x)') &
26 ' Average : ', gpspw%average%tpw/real(ntpw), &
27 ' RMSE : ', sqrt(gpspw%rms_err%tpw/real(ntpw))
28 end if
29
30 if (trace_use_dull) call da_trace_exit("da_residual_gpspw")
31
32 end subroutine da_print_stats_gpspw
33
34