[SAC-HELP] ascii to sac

Stanton, Megan M2Sr at pge.com
Mon May 21 11:00:32 PDT 2007


I just asked the opposite question last week. :)
Below is the old way to do it using the convert command. I believe you
can also do it using the r/write commands. Something like
 
sac
r <ascii filename>
write over sac
 
You may want to make a copy of your ascii file since the r/write will
write over the file you input.
 
HTH,
Megan
CONVERT
SUMMARY:
Converts data files from one format to another.

SYNTAX:
CONVERT {FROM} {format} infile
{TO {format} outfile}|{OVER {format}}
where format is one of the following:
SAC|ALPHA

INPUT:
      infile  :  The name of the input data file.  

      outfile  :  The name of the output data file.  

      OVER  :  Overwrite the input data file.  

      SAC  :  SAC formatted binary data file.  

      ALPHA  :  Alphanumeric equivalent of SAC binary data file.

DEFAULT VALUES:
CONVERT FROM SAC infile OVER SAC

DESCRIPTION:
This command converts a single data file from one format to another.  It
will
be replaced in a future update with an improved system that will use the
READ
and WRITE commands.

________________________________

From: sac-help-bounces at iris.washington.edu
[mailto:sac-help-bounces at iris.washington.edu] On Behalf Of Januka
Attanayake
Sent: Monday, May 21, 2007 10:49 AM
To: sac-help at iris.washington.edu
Subject: [SAC-HELP] ascii to sac



Greetings:
Is it possible to convert an ascii file into a SAC file? if not how
would you read a simple ascii file in SAC?
 
Thanks !
 
Januka 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iris.washington.edu/pipermail/sac-help/attachments/20070521/397604c1/attachment.html


More information about the sac-help mailing list