Hi everyone,
I am a masters student and would like to set up a C program which
communicate with SAC (to make use of it libraries suchas filtering etc..)
I have been gooing through many web pages which give some source code
which i tried.
I have the sacio.a file. do i need to extract the files within it or
leave it as is??
can please someone foward me a simple C source code which make use of
some SAC funcition?
I hope i get some response :)
Matthew
I am a masters student and would like to set up a C program which
communicate with SAC (to make use of it libraries suchas filtering etc..)
I have been gooing through many web pages which give some source code
which i tried.
I have the sacio.a file. do i need to extract the files within it or
leave it as is??
can please someone foward me a simple C source code which make use of
some SAC funcition?
I hope i get some response :)
Matthew
-
Matthew,
The sacio library basically only allows one to read and write sac files.
There are future plans to allow access to features such as
filtering, but not at the present time.
I would suggest writing a shell script, perl script or python script to
comunicate with sac at the present time.
Cheers,
Brian
Matthhew R. Agius wrote:
Hi everyone,
I am a masters student and would like to set up a C program which
communicate with SAC (to make use of it libraries suchas filtering etc..)
I have been gooing through many web pages which give some source code
which i tried.
I have the sacio.a file. do i need to extract the files within it or
leave it as is??
can please someone foward me a simple C source code which make use of
some SAC funcition?
I hope i get some response :)
Matthew
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
-
That was a very quick reply - thanks
But is filtering possible with fortran?
regards,
Matthew
Brian Savage wrote:
Matthew,
The sacio library basically only allows one to read and write sac
files. There are future plans to allow access to features such as
filtering, but not at the present time.
I would suggest writing a shell script, perl script or python script
to comunicate with sac at the present time.
Cheers,
Brian
Matthhew R. Agius wrote:
Hi everyone,
_______________________________________________
I am a masters student and would like to set up a C program which
communicate with SAC (to make use of it libraries suchas filtering
etc..)
I have been gooing through many web pages which give some source code
which i tried.
I have the sacio.a file. do i need to extract the files within it or
leave it as is??
can please someone foward me a simple C source code which make use of
some SAC funcition?
I hope i get some response :)
Matthew
_______________________________________________
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
sac-help mailing list
sac-help<at>iris.washington.edu
http://www.iris.washington.edu/mailman/listinfo/sac-help
-
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
-
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