Hello everyone, I'm a new SAC user, and I'm doing some exercise about macros (following "The seismic analysis code, a primer and user's guide" book), but I'm finding several difficulties about some commands, like HDRVAL. It's like if this command is not installed. Another error is a syntax one, with the commands item, itemcount and existbb. Example of the macro:
^
My SAC version is 101.6a
Can someone help me with this?
Thanks,
Simona
The University of Aberdeen is a charity registered in Scotland, No SC013683.
Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, Àir. SC013683.
setbb rts "ABC 123 XYZ"Syntax error: message "Does str exist? (existbb str)"
message "Does str exist? (existbb str)"
^
My SAC version is 101.6a
Can someone help me with this?
Thanks,
Simona
The University of Aberdeen is a charity registered in Scotland, No SC013683.
Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, Àir. SC013683.
-
Hi Simona,
My understanding is that some SAC functions used in the SAC primer are
implemented in MacSAC and not in IRIS SAC. Perhaps HDRVAL is one of those
functions. As per your little macro, this should work,
SAC> setbb rts "ABS 123 CCC"
SAC> message "Does str exist?(%rts%)"
Does str exist?(ABS 123 CCC)
Januka
Januka Attanayake
Postdoctoral Research Associate
Institute for Geophysics
WWU Münster | CorrensstraBe 24 | 48149 Münster | Germany
Tel +49 251 833 4727
University email: jattanayake<at>uni-muenster.de
Homepage: http://sites.google.com/site/janukaattanayake/
On 23 June 2017 at 17:01, Gabrielli, Simona <simona.gabrielli<at>abdn.ac.uk>
wrote:
Hello everyone, I'm a new SAC user, and I'm doing some exercise about
macros (following "The seismic analysis code, a primer and user's guide"
book), but I'm finding several difficulties about some commands, like
HDRVAL. It's like if this command is not installed. Another error is a
syntax one, with the commands item, itemcount and existbb. Example of the
macro:
setbb rts "ABC 123 XYZ"
Syntax error: message "Does str exist? (existbb str)"
message "Does str exist? (existbb str)"
^
My SAC version is 101.6a
Can someone help me with this?
Thanks,
Simona
The University of Aberdeen is a charity registered in Scotland, No
SC013683.
Tha Oilthigh Obar Dheathain na charthannas clàraichte ann an Alba, Àir.
SC013683.
----------------------
SAC Help | http://ds.iris.edu/message-center/topic/sac-help/ |
Unsubscribe: sac-help-unsubscribe<at>lists.ds.iris.edu
Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
Update subscription preferences at http://ds.iris.edu/account/profile/