[SAC-HELP] C program
Matthhew R. Agius
magi014 at um.edu.mt
Tue Nov 1 05:18:00 PST 2005
First of all i would like to thank this group for the immediate replies.
I dont know if it is a big group but it sounds active :)
Thanks for your code. I managed to create my own code using the sacio.a
file. ALso i followed the steps found on the online manual which most of
which worked. Those which did not work have a most probable reason that
i did something wrong :) - but i got what i wanted.
I guess the code you sent me is something similar to the sacio.
Thanks for all your immediate support and help.
regards,
Matthew
Gene Ichinose wrote:
> If you want to read and write C code you dont need sacio.a or sac.a.
> These include only fortran routines (But as Brian Savage said that
> may change with SAC2000). In C all you need is two lines of code to
> read and write sac files. The binary format is a simple data
> structure of mixed integers, floats, and strings all defined in sac.h.
>
> Try this sample C codes as templates.
>
>
> Include files YES use sac.h
> Environmental variables NO none needed.
>
> Good luck,
> Gene Ichinose
>
> On Oct 31, 2005, at 1:10 AM, Matthhew R. Agius wrote:
>
>> Hi everyone again,
>>
>>
>> does anyone has a working c program that reads and writes a SAC
>> file. I am taking the sample code from the SAC website http://
>> www.iris.edu/manuals/sac/manual.html and i have the sacio.a file but
>> all in vain.
>>
>> Do i need to expand sacio.a ?? in which directory??
>> DO i need to #include any files?? or set some environment???
>>
>> hope i get some reply
>>
>>
>> Matthew
>>
>> _______________________________________________
>> sac-help mailing list
>> sac-help at iris.washington.edu
>> http://www.iris.washington.edu/mailman/listinfo/sac-help
>>
>
More information about the sac-help
mailing list