Thread: Need help

Started: 2018-02-26 20:04:25
Last activity: 2018-02-27 00:31:31
Topics: SAC Help
Sachin Tiwari
2018-02-26 20:04:25
Hi Sac Users,

I need some help. I have two sac traces which need to be normalized on same
scale. Can any body provide me a script for accomplishing this task. Also,
please find both the sac traces attached here. These are just the example
traces, while I need to do the same job on several traces as well.

Thank you very much.

Regards,
--
*Sachin Kumar *
*Junior Research Fellow (JRF)*
*Dept. of Applied Geophysics*
*Indian Institute of Technology (Indian School of Mines), Dhanbad*
*Jharkhand- 826004, India.*

*Mobile No.:+91-7631056163*
*Email : *
*sachinism15<at>gmail.com , <sachinism15<at>gmail.com> ismsachin<at>outlook.com
<sachinism15<at>gmail.com>*

  • George Helffrich
    2018-02-27 00:31:31
    Dear All -

    This will do a relative normalization:

    r 2016_309_1620_CU_SDDR.PRF.sac 2016_309_1620_CU_SDDR.TRF.sac
    div (max (abs &1,depmax&) (abs &1,depmin&) (abs &2,depmax&) (abs &2,depmin&))
    p1 ;* max amplitude is now one
    p2 ;* relative plot

    The div command normalizes the two traces, no matter what their names are. You could write a macro to read two files in them in and then normalize them, similar to this:

    ——contents of file “readnorm”--------
    * SAC Macro to read two files and normalize the traces relative to one another
    * m readnorm <file1> <file2>
    read $1$ $2$
    div (max (abs &1,depmax&) (abs &1,depmin&) (abs &2,depmax&) (abs &2,depmin&))
    ——contents of file “readnorm”————

    and use it in SAC like this:

    m readnorm 2016_309_1620_CU_SDDR.PRF.sac 2016_309_1620_CU_SDDR.TRF.sac
    p2 ;* plot overlay of relatively scaled traces

    On 26 Feb 2018, at 15:35, Sachin Tiwari <sachinism15<at>gmail.com> wrote:

    Hi Sac Users,

    I need some help. I have two sac traces which need to be normalized on same scale. Can any body provide me a script for accomplishing this task. Also, please find both the sac traces attached here. These are just the example traces, while I need to do the same job on several traces as well.

    Thank you very much.

    Regards,
    --
    Sachin Kumar
    Junior Research Fellow (JRF)
    Dept. of Applied Geophysics
    Indian Institute of Technology (Indian School of Mines), Dhanbad
    Jharkhand- 826004, India.
    Mobile No.:+91-7631056163
    Email : sachinism15<at>gmail.com , ismsachin<at>outlook.com
    <2016_309_1620_CU_SDDR.PRF.sac><2016_309_1620_CU_SDDR.TRF.sac>
    ----------------------
    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


00:48:35 v.b3198453