This is a very simple, experimental RSAM program, derived from carStaTrig by
Pete Lombard, UW Geophysics. June 1998

It computes "rectified average" values for selected stations over a specified
interval and logs the values in a daily datafile. "Rectified average" means
the average of abs( signal - mean ) where the mean is computed for the same
interval. The averaging interval is "nSecs" in the config file rsam.d. 

The averaging calculations are in updtsta.c. This is where developers may want
to make changes to the algorithm. The rest of the code takes care of
earthwormy things and checks the incoming trace data for gaps and overlaps.
