Thread: sac2ascii

Started: 2007-05-09 21:25:44
Last activity: 2007-05-10 05:11:12
Topics: SAC Help
Stanton, Megan
2007-05-09 21:25:44
Is there a sac2ascii program available to convert my sac wavefiles into
an ascii format? I'm using SAC on Solaris 5.8.
Thanks,

Megan Stanton, Seismologist
Pacific Gas & Electric Company
Geosciences Dept.
245 Market St N4C Rm 418A
San Francisco, CA 94105
415-973-3116 work
408-835-3033 cell

  • Arthur Snoke
    2007-05-10 00:35:12
    Youi read in your file, run convert, and write out the result.

    In sac, do the following:

    SAC> help convert


    SAC Command Reference Manual CONVERT

    SUMMARY:
    Converts data files from one format to another.

    It goes on to tell you what the arguments will be.

    On Wed, 9 May 2007, Stanton, Megan wrote:

    Is there a sac2ascii program available to convert my sac wavefiles into
    an ascii format? I'm using SAC on Solaris 5.8.
    Thanks,


  • Gene Ichinose
    2007-05-10 05:11:12
    Its easy to access any sac header or data value directly from the sac
    file if you know how to use C

    

    To compile:

    gcc -o sac2ascii sac2ascii.c

    To run:

    ./sac2ascii < mysacfile.sac > myasciifile.txt

    Output format is:
    Column 1 - time in seconds
    Column 2 - amplitude

    On May 9, 2007, at 5:25 PM, Stanton, Megan wrote:

    Is there a sac2ascii program available to convert my sac wavefiles
    into an ascii format? I'm using SAC on Solaris 5.8.
    Thanks,

    Megan Stanton, Seismologist
    Pacific Gas & Electric Company
    Geosciences Dept.
    245 Market St N4C Rm 418A
    San Francisco, CA 94105
    415-973-3116 work
    408-835-3033 cell
    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


    Attachments
Page built 05:39:14 | v.090361a2