Thread: Define / Create New Header in SAC

Started: 2022-05-26 05:45:23
Last activity: 2022-05-26 16:05:51
Topics: SAC Help
Nima Dolatabadi
2022-05-26 05:45:23
Dear Developers,I'm willing to create New Headers for a waveform in sac format, My Headers are like Mw, Mb, Ms, (other than MAG), and some strings or integers.Is there any manual to do so? I could not find anything in sac help or the SAC book or sac learning by zhigang Peng!!I was just able to find that it has to be related to setbb command but I completely have no idea about the procedure. I hope you can give me full explanation.Regards________________________

- Nima Dolatabadi
- M.Sc., Geophysics
- Institute of Geophysics
- University of Tehran
- Tehran, Iran



  • Cliff Thurber
    2022-05-26 06:22:10
    Nima,

    If I understand what you want to do correctly, you can use any of the ten user fields USER0 to USER9 for any purpose of your choosing, such as additional magnitude measures. It is not advisable to try to introduce a completely new variable into the SAC header, as you will lose compatibility. See

    http://www.adc1.iris.edu/files/sac-manual/manual/file_format.html

    Good luck.

    Cliff

    On May 26, 2022, at 12:49 AM, Nima Dolatabadi (via IRIS) <sac-help-bounce<at>lists.ds.iris.edu> wrote:

    
    Dear Developers,
    I'm willing to create New Headers for a waveform in sac format, My Headers are like Mw, Mb, Ms, (other than MAG), and some strings or integers.
    Is there any manual to do so? I could not find anything in sac help or the SAC book or sac learning by zhigang Peng!!
    I was just able to find that it has to be related to setbb command but I completely have no idea about the procedure. I hope you can give me full explanation.
    Regards
    ________________________

    * Nima Dolatabadi
    * M.Sc., Geophysics
    * Institute of Geophysics
    * University of Tehran
    * Tehran, Iran



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

  • Geo .
    2022-05-26 16:05:51
    Hi Nima,
    My understanding is that you can't rename sac headers but you can store
    user-specific new variables in USER{n} (n = 0,9) headers. See
    http://www.adc1.iris.edu/files/sac-manual/manual/file_format.html

    Januka

    Januka Attanayake
    Research Fellow/Lecturer | Earthquake Seismology Lead
    Homepage: *https://sites.google.com/site/janukaattanayake
    https://sites.google.com/site/janukaattanayake*

    School of Geography, Earth & Atmospheric Sciences
    University of Melbourne | Parkville 3010 VIC
    Australia




    On Thu, 26 May 2022 at 15:50, Nima Dolatabadi (via IRIS) <
    sac-help-bounce<at>lists.ds.iris.edu> wrote:

    Dear Developers,
    I'm willing to *create New Headers* for a waveform in *sac format*, My
    Headers are like *Mw, Mb, Ms*, (other than MAG), and some strings or
    integers.
    Is there any manual to do so? I could not find anything in sac help or the
    SAC book or sac learning by zhigang Peng!!
    I was just able to find that it has to be related to *setbb* command but
    I completely have no idea about the procedure. I hope you can give me full
    explanation.
    Regards
    ________________________

    - Nima Dolatabadi
    - M.Sc., Geophysics
    - Institute of Geophysics
    - University of Tehran
    - Tehran, Iran




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


13:04:21 v.22510d55