Dear All,
I am writing a macro in SAC to remove the instrument response for many waveforms, my script is:
r AS*SHZ*SAC
setbb f1 0.1
setbb f2 0.15
setbb f3 8
setbb f4 9
rmean
rtrend
taper
transfer from polezero subtype SACPZ.AS.ZOBO.--.SHZ to acc freq %f1 %f2 %f3 %f4
Is there a way to save all traces with the original name but adding *_acc.sac?, for example:
write *_acc.sac, where *sac represents the "AS.ZOBO.SHZ"?
Thank you in advance.
Tonino
I am writing a macro in SAC to remove the instrument response for many waveforms, my script is:
r AS*SHZ*SAC
setbb f1 0.1
setbb f2 0.15
setbb f3 8
setbb f4 9
rmean
rtrend
taper
transfer from polezero subtype SACPZ.AS.ZOBO.--.SHZ to acc freq %f1 %f2 %f3 %f4
Is there a way to save all traces with the original name but adding *_acc.sac?, for example:
write *_acc.sac, where *sac represents the "AS.ZOBO.SHZ"?
Thank you in advance.
Tonino
-
Hi,
Use WRITE APPEND or WRITE PREPEND flags. See the manual for details.
https://ds.iris.edu/files/sac-manual/commands/write.html
Januka
On Tue., 25 Aug. 2020, 12:01 pm tonino fernandez marañon (via IRIS), <
sac-help-9126.38045-bounce<at>lists.ds.iris.edu> wrote:
Dear All,
I am writing a macro in SAC to remove the instrument response for many
waveforms, my script is:
r AS*SHZ*SAC
setbb f1 0.1
setbb f2 0.15
setbb f3 8
setbb f4 9
rmean
rtrend
taper
transfer from polezero subtype SACPZ.AS.ZOBO.--.SHZ to acc freq %f1 %f2
%f3 %f4
Is there a way to save all traces with the original name but adding
*_acc.sac?, for example:
write *_acc.sac, where *sac represents the "AS.ZOBO.SHZ"?
Thank you in advance.
Tonino
----------------------
SAC Help
Topic home: 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/
-
Dear Januka,
Works fine, thank you and stay safe.
regards
Tonino
El lun., 24 ago. 2020 a las 22:20, Geo . (via IRIS) (<
sac-help-9127.63216-bounce<at>lists.ds.iris.edu>) escribió:
Hi,
Use WRITE APPEND or WRITE PREPEND flags. See the manual for details.
https://ds.iris.edu/files/sac-manual/commands/write.html
Januka
On Tue., 25 Aug. 2020, 12:01 pm tonino fernandez marañon (via IRIS), <
sac-help-9126.38045-bounce<at>lists.ds.iris.edu> wrote:
Dear All,
----------------------
I am writing a macro in SAC to remove the instrument response for many
waveforms, my script is:
r AS*SHZ*SAC
setbb f1 0.1
setbb f2 0.15
setbb f3 8
setbb f4 9
rmean
rtrend
taper
transfer from polezero subtype SACPZ.AS.ZOBO.--.SHZ to acc freq %f1 %f2
%f3 %f4
Is there a way to save all traces with the original name but adding
*_acc.sac?, for example:
write *_acc.sac, where *sac represents the "AS.ZOBO.SHZ"?
Thank you in advance.
Tonino
----------------------
SAC Help
Topic home: 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/
SAC Help
Topic home: 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/
-