[SAC-HELP] ASCII to SAC

Januka Attanayake jattanayake at gmail.com
Wed Nov 4 12:49:36 PST 2009


Hello everyone,
I have a time series of synthetic traces and would like to convert them to
SAC format. I know I could use the CONVERT function but before that I have
to format the ASCII (time series) file by arranging the values for sac
header. Is there a utility to do this pre-formatting before I could use the
CONVERT function?
ex. I believe my ASCII file should look like the following before using
CONVERT
         0.125      -7441.313       4087.937              1         -12345
      -12.73499       4.265015      -1145.083     -0.7329407              2
      -7.154175      -11.04712      -5.158936         -12345         -12345
         -12345         -12345         -12345         -12345         -12345
         -12345         -12345         -12345         -12345         -12345
         -12345         -12345         -12345         -12345         -12345
         -12345       49.69189       11.22172          499.5              0
         -18.58       -177.847         -12345         406800            6.3
       153.6304       92.23995       118.4234         -12345         -12345
         -12345         -12345         -12345         -12345         -12345
       16459.75       348.8256       16.44247       148.1168         -12345
         -12345       11.20899              0              0         -12345
         -12345         -12345         -12345         -12345         -12345
         -12345         -12345         -12345         -12345         -12345
      2007         8        21        11        25
       723         6         0         0       137
    -12345         3    -12345    -12345    -12345
         1         7    -12345    -12345    -12345
    -12345    -12345    -12345    -12345    -12345
    -12345    -12345    -12345    -12345    -12345
    -12345    -12345    -12345    -12345    -12345
         1         0         1         1         0
GRA1     -12345
        -12345
PKP     PKIKP   PKiKP
-12345  -12345  -12345
-12345  -12345  -12345
-12345  -12345  -12345
-12345  -12345  BHZ
GR      -12345  -12345
      -187.3201      -188.5614       -217.869      -206.1952      -207.0166
      -215.3447      -195.2354      -180.3634      -132.7042      -73.69939
      -41.64182       20.88158       27.19209       49.59732       147.0182
         84.607       63.40969       54.25536       80.00433       81.05703
       88.90465         90.763       85.95925       49.39476       22.92792
      -49.27525      -137.7821      -148.9169      -235.7549      -260.8252
      -287.5518       -289.338      -262.7619      -247.1613      -195.9543
       -143.929      -87.96223      -55.86754       42.96152       41.11675
       88.47706       110.7524       203.3549       248.1527        288.513
       289.4476       425.0559       414.4856       489.2326       529.2755
       708.3331       979.9971       1099.924       1216.979       1358.369

I am not sure how I could get the values related to sac header organized (a
program?). Any ideas?

Thank you very much.

Januka.
-- 
"Nothing can start to exist nor can cease to exist, only transformation is
possible"

Januka Attanayake
Solid Earth Geophysics & Economics
University of Connecticut
Beach Hall   U-2045
354,Mansfield Rd;
Storrs.CT 06269

Tel: 1 860 486 0475
URL: http://sites.google.com/site/janukaattanayake/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20091104/e5fc188d/attachment.html>


More information about the sac-help mailing list