Thread: bandpass command problem in 102.0

Started: 2022-10-21 17:34:51
Last activity: 2022-10-21 22:04:43
Topics: SAC Help
Monumoy Ghosh
2022-10-21 17:34:51
I use this script below.

sac <<!
echo on
r ${rootname}T ${rootname}R ${rootname}Z
qdp off
rtr
rmean
taper
bp co $bp1 $bp2 p 2
ppk
ch a ${timeaa} ka a
wh
ch f ${timeff} kf f
wh
w pol_T${lowp}_${higp}_${root}.${cha}T pol_T${lowp}_${higp}_${root}.${cha}R
pol_T${lowp}_${higp}_${root}.${cha}Z
r pol_T${lowp}_${higp}_${root}.${cha}?
fileid on type name
ppk
q
!


But the pol_* files doesn't show the band pass filtered signal

  • George Helffrich
    2022-10-21 16:51:40
    Dear 24.papan<at>gmail.com <24.papan<at>gmail.com> -

    Maybe you should change the “sac” command to “cat” to show what the SAC commands will actually be. I suspect that all of your shell variables are not set as you expect.

    On 21 Oct 2022, at 16:44, Monumoy Ghosh (via IRIS) <sac-help-bounce<at>lists.ds.iris.edu> wrote:

    I use this script below.

    sac <<!
    echo on
    r ${rootname}T ${rootname}R ${rootname}Z
    qdp off
    rtr
    rmean
    taper
    bp co $bp1 $bp2 p 2
    ppk
    ch a ${timeaa} ka a
    wh
    ch f ${timeff} kf f
    wh
    w pol_T${lowp}_${higp}_${root}.${cha}T pol_T${lowp}_${higp}_${root}.${cha}R pol_T${lowp}_${higp}_${root}.${cha}Z
    r pol_T${lowp}_${higp}_${root}.${cha}?
    fileid on type name
    ppk
    q
    !



    But the pol_* files doesn't show the band pass filtered signal


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


    • Onur Tan
      2022-10-21 22:04:43
      Hi,
      I also suggest that first write all lines to a temporary file and then
      forward to sac.
      Writing long versions of commands may be better (write, read etc).

      echo "sac-command" > sac.tmp
      echo "sac-command" >> sac.tmp
      echo "quit" >> sac.tmp
      sac < sac.tmp
      \rm sac.tmp (remove or not)

      Onur



      George Helffrich (via IRIS) <sac-help-bounce<at>lists.ds.iris.edu>, 21 Eki
      2022 Cum, 21:59 tarihinde şunu yazdı:

      Dear 24.papan<at>gmail.com -

      Maybe you should change the “sac” command to “cat” to show what the SAC
      commands will actually be. I suspect that all of your shell variables are
      not set as you expect.

      On 21 Oct 2022, at 16:44, Monumoy Ghosh (via IRIS) <
      sac-help-bounce<at>lists.ds.iris.edu> wrote:

      I use this script below.

      sac <<!
      echo on
      r ${rootname}T ${rootname}R ${rootname}Z
      qdp off
      rtr
      rmean
      taper
      bp co $bp1 $bp2 p 2
      ppk
      ch a ${timeaa} ka a
      wh
      ch f ${timeff} kf f
      wh
      w pol_T${lowp}_${higp}_${root}.${cha}T
      pol_T${lowp}_${higp}_${root}.${cha}R pol_T${lowp}_${higp}_${root}.${cha}Z
      r pol_T${lowp}_${higp}_${root}.${cha}?
      fileid on type name
      ppk
      q
      !


      But the pol_* files doesn't show the band pass filtered signal

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


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


12:10:11 v.ad6b513c