Thread: Help request on "Max files: reading first 1000 files."

Started: 2019-01-30 22:43:57
Last activity: 2019-02-11 18:27:02
Topics: SAC Help
ksabunis@colostate.edu
2019-01-30 22:43:57
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
  • George Helffrich
    2019-01-31 17:32:53
    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:

    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 Helffrich
    george<at>elsi.jp


    • ksabunis@colostate.edu
      2019-02-11 18:27:02
      Thank 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
13:51:00 v.22510d55