  1.  NAME

  statupd - Update statistics array

  2.  SYNOPSIS

  [upd, hdg] = statupd(data, stat, options )

  3.  DESCRIPTION

  Udates the current statistics array with the given subset of data. See
  stat(5m) for more information.

  4.  PARAMETERS

     data
        Matrix (MxN) of N data for the M different variables.

     stat
        Satitistics array (Mx7).

  5.  OPTIONS

     '-hdg', hdg
        Non-NaN elements in vector hdg of length M specifiy the last
        value of heading,which is to be used to calculate the mean
        heading. This allow to calculate heading mean values accross the
        360/0 point.  Updated heading statistics is converted within 0
        .. 360.

  6.  RETURNS

     upd
        Statistics array updated with the data vector.

     hdg optional
        Array with last value of heading,to be used for successive calls
        to this function. This output argument should be used if option
        -hdg is used.  .nr ll -1

  7.  SEE ALSO

  flagdata(3m)stat(5m)statcalc(3m)statinit(3m)statlim(3m)stat_str(3m)statupd(3m)

  8.  AUTHORS

  Pierre Jaccard, Geophysical Institute, University of Bergen, 1999

