<HTML> <BODY BGCOLOR=#ccccdd LINK=#0000aa VLINK=#0000ff ALINK=#ff0000 ><BASE TARGET="bottom_target"><PRE>
<A NAME='DA_PRINT_STATS_GPSREF'><A href='../../html_code/gpsref/da_print_stats_gpsref.inc.html#DA_PRINT_STATS_GPSREF' TARGET='top_target'><IMG SRC="../../gif/bar_red.gif" border=0></A>

subroutine da_print_stats_gpsref(stats_unit, ngpsref, GPSRef) 2,2

   !-----------------------------------------------------------------------
   ! Purpose: TBD
   !-----------------------------------------------------------------------

   implicit none

   integer,                  intent(in)    :: stats_unit
   integer,                  intent(inout) :: ngpsref
   type (stats_gpsref_type), intent(in)    :: gpsref

   if (trace_use_dull) call da_trace_entry("da_print_stats_gpsref")
   
   write (unit=stats_unit, fmt='(a/)') '   var           ref(m)  n    k'  

   write (unit=stats_unit, fmt='(a,i16)') '  Number: ', ngpsref

   if (ngpsref &lt; 1) ngpsref = 1
   
   write(unit=stats_unit, fmt='((a,f12.4,2i5))') &amp;
      ' Minimum(n,k): ', GPSRef%minimum%ref,    &amp;
      ' Maximum(n,k): ', GPSRef%maximum%ref
   write(unit=stats_unit, fmt='((a,f12.4,10x))') &amp;
      ' Average     : ', GPSRef%average%ref/real(ngpsref),    &amp;
      '    RMSE     : ', sqrt(GPSRef%rms_err%ref/real(ngpsref))

   if (trace_use_dull) call da_trace_exit("da_print_stats_gpsref")

end subroutine da_print_stats_gpsref