Thread: How do I use a SAC header value in a script?

Started: 2013-04-05 21:53:23
Last activity: 2013-04-05 21:53:23
Topics: SAC Help
Shahar Barak
2013-04-05 21:53:23
Hi,

I want the KZTIME in all my files to be 00:00:00.00.
For example, if I have "kztime = 00:00:00.095", I do
SAC> ch allt 0.095
which changes the time appropriately for kztime, b ,e, o, etc.
Basically, I want to subtract kztime from kztime.
Is there a way, in SAC, to extract kztim in seconds to use it for changing
the time?

09:13:43 v.22510d55