Hi all,
Hope you are having a great day so far. I'm working on a script to merge a few thousand sac files in to a single daylong file. However, it doesn't seem possible to read more than a 1000 files at once. Is it possible to bypass this limitation or is there a work around? Thank you for your help in advance!
Best,
Kivanc SABUNIS
Colorado State University
Master of Geosciences Candidate
Hope you are having a great day so far. I'm working on a script to merge a few thousand sac files in to a single daylong file. However, it doesn't seem possible to read more than a 1000 files at once. Is it possible to bypass this limitation or is there a work around? Thank you for your help in advance!
Best,
Kivanc SABUNIS
Colorado State University
Master of Geosciences Candidate
-
Dear All -
Since your goal is a to make a single file, why not merge them sequentially one at a time? Then you deal with only two at once. For example (using the old form of the MERGE command),
read f1
merge f2
merge f3
…
On 31 Jan 2019, at 07:47, ksabunis<at>colostate.edu wrote:
George Helffrich
Hi all,
Hope you are having a great day so far. I'm working on a script to merge a few thousand sac files in to a single daylong file. However, it doesn't seem possible to read more than a 1000 files at once. Is it possible to bypass this limitation or is there a work around? Thank you for your help in advance!
Best,
Kivanc SABUNIS
Colorado State University
Master of Geosciences Candidate
----------------------
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/
george<at>elsi.jp
-
ksabunis@colostate.edu2019-02-11 18:27:02Thank you for your response! I believe I didn't do a great job explaining my situation initially. I'm trying to automate this process (merging thousands of sac files together in to a daylong file) because I have to do this for a decent number of event-station pairs.
Since the number of files I have to merge changes for every event-station pair, I was hoping I could read them all at once. However, your response gave me an idea and it seems that I can solve this problem with the help of sac macros.
Kivanc
-