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
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
-
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,
-
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