[SAC-HELP] ascii to sac
Arthur Snoke
snoke at vt.edu
Mon May 21 11:11:28 PDT 2007
Some on this list may have written programs for preparing data in "alpha"
or ascii format. To understand about sac file formats, I suggest you
spend time with the sac users manual at
<http://www.iris.edu/manuals/sac/manual.html>. Instructions like the
following may be helpful:
Sample Alphanumeric Data File
The header section and first five lines of the data section of a sample
SAC alphanumeric data file is shown below. You can reproduce this file
(with the entire data section) on your system by executing the following
commands:
u: FUNCGEN SEISMOGRAM
u: WRITE ALPHA TEMP1
You can then convert this alphanumeric file to a binary one and read it
into SAC with the following commands:
u: CONVERT FROM ALPHA TEMP1 TO SAC TEMP2
u: READ TEMP2
(cut and paste from the manual)
On Mon, 21 May 2007, Januka Attanayake wrote:
> 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
>
More information about the sac-help
mailing list