mseed2ts

 USAGE:  
          mseed2ts [-N] <mseed-file> [<mseed-file> ...
]
 
 PURPOSE:
          converts many mseed-files to BIN-ts via SAC
 
 OPTIONS:

  -N      renew the SAC-files

          else the mseed-to-sac conversion is skipped.
 
  -S      Only do the mseed2sac conversion.
          The names of the sac-files will be printed.
 
  -K      Keep the sac-files.
 
  -D <dr> put results into subdirectories
          Name root <dr> will be trailed by the date
          <dr>-<YYYY>-<MM>-<DD>/
          Default is the current dir.
 
  -v      verbose; print selected results using tslq.
  -vv     verbose; print a lot more
  -vt     don't exec, show the commands instead
 
  -tso "tslist-options" - can be repeated
          If an option starts with -Un then
          1-hour files will be made. Then an output
          file name must be given (option -o) that contains
          a %-sign where the start time will be injected.
          Preferably specify more than 360000 in order
          to guarantee overlaps for filtering.
          Use the -T option to completely extract all
          mseed samples.
 
  -calibrated
          Use the environment value of $MSEED_CALVAL
          (default the hard-wired value $calval in this script)
          to scale the output.
  -cal <value>
          Calibrate (multiply with) value.
 
  -T      with splitting into 1-hour files:
          Default is to leave a spill less than
          the given amount of samples in the -Un option.
          -T will exhaust the mseed-file completely.
 
  -o <out-ts>
 
  -O:label { <file> | - }   Significant`-ยด for default output file name.
 
 ENVIRONMENT:
 
   MSEED_CALVAL   Default = 0.0002099
 
 EXAMPLES:
    
          Splitting hourly, length happens to exhaust the mseed file:
 
    mseed2ts -D SG.OSO/ -N -o SG.OSO.HGN.%.ts -tso -Un366000 DT0013SG.HGN
 
          Result:
 h[hgs]~/Seismo/mseed> ls -lR SG.OSO/*
 SG.OSO/2016-03-01:
 total 20020
 -rw-rw-r-- 1 hgs hgs 2928084 Mar  2 16:53 SG.OSO.HGN.2016:03:01:06:32:35.ts
 -rw-rw-r-- 1 hgs hgs 2928084 Mar  2 16:53 SG.OSO.HGN.2016:03:01:07:32:35.ts
 -rw-rw-r-- 1 hgs hgs 2928084 Mar  2 16:53 SG.OSO.HGN.2016:03:01:08:32:35.ts
 -rw-rw-r-- 1 hgs hgs 2928080 Mar  2 16:53 SG.OSO.HGN.2016:03:01:09:32:35.ts
 -rw-rw-r-- 1 hgs hgs 2928084 Mar  2 16:53 SG.OSO.HGN.2016:03:01:10:32:35.ts
 -rw-rw-r-- 1 hgs hgs 2928084 Mar  2 16:53 SG.OSO.HGN.2016:03:01:11:32:35.ts
 -rw-rw-r-- 1 hgs hgs 2928084 Mar  2 16:53 SG.OSO.HGN.2016:03:01:12:32:35.ts

 
           From shuttle earthworm/mseedfiles/ :
 
    mseed2ts -D SG.OSO/ -N -o SG.OSO.HGE.%.ts -calibrated -tso -Un366000 SG.OSO.2016-06-26/OSO.SG.SG.HGE.2016.178
 
           Result:
 h[hgs]~/Seismo/mseed> ll SG.OSO/*HGE*
 -rw-rw-r-- 1 hgs hgs 2928084 Dec  9 12:04 SG.OSO/SG.OSO.HGE.2016:12:08:00:00:00.ts
 -rw-rw-r-- 1 hgs hgs 2928084 Dec  9 12:04 SG.OSO/SG.OSO.HGE.2016:12:08:01:00:00.ts
 -rw-rw-r-- 1 hgs hgs 2928084 Dec  9 12:04 SG.OSO/SG.OSO.HGE.2016:12:08:02:00:00.ts
 ...

 
 
Calibration value, the script's default with option -calibrated:
 set calval=0.0002099