da_print_stats_gpsref.inc

References to this file elsewhere.
1 subroutine da_print_stats_gpsref(stats_unit, ngpsref, GPSRef)
2 
3    !-----------------------------------------------------------------------
4    ! Purpose: TBD
5    !-----------------------------------------------------------------------
6 
7    implicit none
8 
9    integer,                  intent(in)    :: stats_unit
10    integer,                  intent(inout) :: ngpsref
11    type (stats_gpsref_type), intent(in)    :: gpsref
12 
13    if (trace_use_dull) call da_trace_entry("da_print_stats_gpsref")
14    
15    write (unit=stats_unit, fmt='(a/)') '   var           ref(m)  n    k'  
16 
17    write (unit=stats_unit, fmt='(a,i16)') '  Number: ', ngpsref
18 
19    if (ngpsref < 1) ngpsref = 1
20    
21    write(unit=stats_unit, fmt='((a,f12.4,2i5))') &
22       ' Minimum(n,k): ', GPSRef%minimum%ref,    &
23       ' Maximum(n,k): ', GPSRef%maximum%ref
24    write(unit=stats_unit, fmt='((a,f12.4,10x))') &
25       ' Average     : ', GPSRef%average%ref/real(ngpsref),    &
26       '    RMSE     : ', sqrt(GPSRef%rms_err%ref/real(ngpsref))
27 
28    if (trace_use_dull) call da_trace_exit("da_print_stats_gpsref")
29 
30 end subroutine da_print_stats_gpsref
31 
32