<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Fiona<div><br class="webkit-block-placeholder"></div><div>There are old version of libsac.a floating around, these are generally 10.6d(f) versions.</div><div>The older library should include the kidate, xapiir, and getfil.</div><div><br></div><div>The libraries included with the most recent versions of SAC do not include these subroutines.</div><div>What is included is only routines which read and write portions of sac and blackboard variable files.</div><div>These function include, as you have stated: get*hv, set*hv, rsac* and wsac*.</div><div><br class="webkit-block-placeholder"></div><div>The functionality of rsach should be available through the rsac* command.  The rsach command only read</div><div>in the SAC header and not the data.  If you can live with reading in the data as well as the header, you can change</div><div>to this function.  The function rsach does not exist in the current SAC source code.</div><div><br class="webkit-block-placeholder"></div><div>Access to the kidate, xapiir, and getfil is not simple and not supported under the current state of the SAC code base.</div><div><br class="webkit-block-placeholder"></div><div>Cheers</div><div>Brian Savage</div><div><br class="webkit-block-placeholder"></div><div><br><div><div>On Mar 10, 2008, at  3:09 PM , Fiona Darbyshire wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">Dear All,<br><br>I think I have identified the issues regarding the SAC input/output associated with the cross-correlation program, but that has raised more questions before I can actually solve the problem.<br>Some of the libraries called by the program are fairly standard ones that appear in the regular "sacio.a" (and in Computer Programs in Seismology...) - namely get*hv, set*hv, rsac*, wsac*. However, there are still 4 outstanding subroutine calls that are a problem.<br><br>I downloaded the most recent version of the SAC binaries and source code to try to track them down. I was able to find 3 of the 4; they are "kidate", "xapiir" and "getfil". As far as I could understand from the SAC Makefile, these codes go into "libsac.a" (sac.a?) but not into "sacio.a" and further reading of the Makefile suggested that "libsac.a" is not installed in the standard compilation process. The Makefile is orders of magnitude more complicated than anything I have dealt with before, so could someone help me with finding out how to install libsac.a so that I can access these three library subroutines?<br><br>The fourth subroutine was "rsach(name,nerr)". This subroutine appears to exist in the libraries of sac10.6d (I have an old copy but it doesn't work on my system; I just happened to have kept it) but I have not been able to find any reference to it in the current version of SAC. Has it been replaced by something else? If so, what?<br><br>Please let me know what I can do to solve this problem; I am working on somewhat limited time for resolving this issue and hence using the traveltime code.<br><br>Many thanks,<br><br>Fiona Darbyshire.<br><br>PS. Anyone any idea about my other question - getting SAC files into PITSA-ASCII?<br></span></blockquote></div><br></div></body></html>