#### DESCRIPTION #######################################################
########################################################################
##   Interpolates time series data to a typical sample rate if it has ##
##  an atypical one.  Mainly for fixing a few stations that have had  ##
##  timing drift corrections applied and so the sample rate is off.   ##
##  Also fixes minor fluctuations in sample intervals that can cause  ##
##  problems later.                                                   ##
##                                                                    ##
##   LAST EDITED: Jun. 15, 2008 at 16:35 GMT by Garrett Euler         ##
##   VERSION INFO:                                                    ##
##            3.8: minor difference at max sig dig (8)                ##
##            3.7: updated xsacinterp                                 ##
##            3.6: handles when input and output directories are      ##
##                 equal better (skip copy when file unchanged)       ##
##            3.5: threading support added to optimize efficiency     ##
##            3.4: divided sample interval problems into 2 catagories ##
##                 - full out interpolation when the rate is          ##
##                   significantly different from a standard          ##
##                 - forced change of delta header value when there   ##
##                   is a minor difference from a standard            ##
##            3.3: back to fixing sample rate issues but with matlab  ##
##                 interpolation routines replacing the old sac ones  ##
##            3.2: now only prints a message for odd samplerates b/c  ##
##                 of sac interpolate having serious issues           ##
##            3.1: more standards added                               ##
##            3.0: perl modules and code cleaning                     ##
##            2.0: more exit codes and better interpolation           ##
##            1.2: removed close si option and added update           ##
##            1.1: more samplerates                                   ##
##            1.0: initial version                                    ##
########################################################################

#### USAGE #############################################################
########################################################################
##  Command line input:                                               ##
##     fixsr.pl in_data_dir new_data_dir nproc                        ##
##                                                                    ##
##     where:                                                         ##
##        *in_data_dir - input data directory                         ##
##        *new_data_dir - output data directory                       ##
##        *nproc - number of processor threads for this task          ##
########################################################################

