Thread: sac101.5 32bit problem: can not change(update) header using sac101.5

Started: 2012-01-08 23:49:43
Last activity: 2012-01-09 00:57:24
Topics: SAC Help
Hi everyone,

I recently update sac into sac 101.5 on centos6.2 and centos 5.5, both
32bit and encountered problems while changing headers using "ch ", as
described bellow.

cat <<EOF >test.sh
funcgen seis
w demo.sac
rh demo.sac
ch t1 12.0
wh
r demo.sac
lh t1
q
EOF

sac < test.sh

As shown in my linux, the header t1 do not exist in demo.sac and moreover
it seems the waveform has been changed.

Is this a bug or it is due to the setup of my linux env?

Any advices ? thanks!

PS. I use the pre-compiled binary distribution of sac101.32bit.

wangwt

  • I have the same problem using 'ch' version 101.5. I came back to
    version 101.4.

    Fabio

    2012/1/8 weitao wang <wangwtustc<at>gmail.com>

    Hi everyone,

    I recently update sac into sac 101.5 on centos6.2 and centos 5.5, both
    32bit and encountered problems while changing headers using "ch ", as
    described bellow.

    cat <<EOF >test.sh
    funcgen seis
    w demo.sac
    rh demo.sac
    ch t1 12.0
    wh
    r demo.sac
    lh t1
    q
    EOF

    sac < test.sh

    As shown in my linux, the header t1 do not exist in demo.sac and moreover
    it seems the waveform has been changed.

    Is this a bug or it is due to the setup of my linux env?

    Any advices ? thanks!

    PS. I use the pre-compiled binary distribution of sac101.32bit.

    wangwt

    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help



    • Dear wangwt and Fabio,

      There is a bug in sac version 101.5 command to write headers. It only affects the command writehdr (wh).

      We should be able to create and upload to IRIS a patched version of version 101.5 in the coming days (week).

      In the meantime, your options are
      - Version 101.4
      - Using the read/write command sequence instead of readhdr/writehdr

      If you compiled the binary yourself by requesting the source file from IRIS, the attached patch file can be applied to remedy the writehdr bug.

      wangwt, Thank you for submitting the bug report and a simple command sequence It was quite helpful to identifying source of the the bug. Thanks again.

      B



      On Jan 8, 2012, at 1:57 PM, Fábio Dias wrote:

      I have the same problem using 'ch' version 101.5. I came back to version 101.4.

      Fabio

      2012/1/8 weitao wang <wangwtustc<at>gmail.com>
      Hi everyone,

      I recently update sac into sac 101.5 on centos6.2 and centos 5.5, both 32bit and encountered problems while changing headers using "ch ", as described bellow.

      cat <<EOF >test.sh
      funcgen seis
      w demo.sac
      rh demo.sac
      ch t1 12.0
      wh
      r demo.sac
      lh t1
      q
      EOF

      sac < test.sh

      As shown in my linux, the header t1 do not exist in demo.sac and moreover it seems the waveform has been changed.

      Is this a bug or it is due to the setup of my linux env?

      Any advices ? thanks!

      PS. I use the pre-compiled binary distribution of sac101.32bit.

      wangwt

      _______________________________________________
      sac-help mailing list
      sac-help<at>iris.washington.edu
      http://www.iris.washington.edu/mailman/listinfo/sac-help


      _______________________________________________
      sac-help mailing list
      sac-help<at>iris.washington.edu
      http://www.iris.washington.edu/mailman/listinfo/sac-help


      Attachments
09:26:59 v.b4412d20