Thread: Divide SAC data by hours

Started: 2021-11-23 15:03:37
Last activity: 2021-11-24 08:55:18
Topics: SAC Help
Guilherme de Melo
2021-11-23 15:03:37
Dears,

I have a large .SAC data of ~2 months time, it created from the conversion
of a single raw data file. I would like to know if there is a way of script
to divide the data for other files in day or hour.

I will be very grateful for the help.
Best,
Guilherme

  • George Helffrich
    2021-11-24 08:55:18
    Dear Guilherme -

    On disk, even large SAC files are read efficiently by SAC. If you use the CUT command to define a day-long time window before reading your large file, SAC skips the bits that aren’t relevant and only reads the required data. Then write out each smaller file, change the CUT for the next day, and re-read.

    Alternatively, use CUTIM after you read in the whole file, and write out each day-long window.

    Finally, the SAC data probably was probably derived from some other format (mseed, etc.). You could re-run the programs that convert it to SAC format into smaller chunks.

    See SAC’s HELP command (or online help) for CUT, CUTIM and READ.

    On 23 Nov 2021, at 23:05, Guilherme de Melo (via IRIS) <sac-help-bounce<at>lists.ds.iris.edu> wrote:

    Dears,

    I have a large .SAC data of ~2 months time, it created from the conversion of a single raw data file. I would like to know if there is a way of script to divide the data for other files in day or hour.

    I will be very grateful for the help.
    Best,
    Guilherme

    ----------------------
    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


10:30:12 v.01697673