Thread: a small bug of traveltime

Started: 2013-03-26 05:34:44
Last activity: 2013-03-27 05:57:48
Topics: SAC Help
Dongdong Tian
2013-03-26 05:34:44
Hi,
There is a small bug of command traveltime.
Run traveltime like below,

SAC> fg seis
SAC> traveltime MODEL IASP91 PICK 0 PHASE Pn Sn
traveltime: depth: 15.000000 km
Error: can't find iaspmodel header file "/opt/sac/aux/tables/IASP91.hed"

SAC itself is case insensitive,but Linux is case sensitive. This command
tries
to look for an auxiliary file in Linux, so the model names, iasp91 and
ak135, should be
in lower case.

The document of traveltime says,
INPUT
-----

:MODEL: IASP91 [default], AK135

It may mislead users that model names are case insensitive.
It may be better to add some codes to handle both upper case and lower case
model name.

  • Brian Savage
    2013-03-25 17:58:54
    Dear Dongdong Tian,

    Does the following work on your linux machine

    SAC> traveltime MODEL iasp91 PICK 0 PHASE Pn Sn

    with a lower case iasp91 ?

    If so, we will change the documentation and possibly the traveltime routine.

    Brian



    On Mar 25, 2013, at 10:34 AM, Dongdong Tian wrote:

    Hi,
    There is a small bug of command traveltime.
    Run traveltime like below,

    SAC> fg seis
    SAC> traveltime MODEL IASP91 PICK 0 PHASE Pn Sn
    traveltime: depth: 15.000000 km
    Error: can't find iaspmodel header file "/opt/sac/aux/tables/IASP91.hed"

    SAC itself is case insensitive,but Linux is case sensitive. This command tries
    to look for an auxiliary file in Linux, so the model names, iasp91 and ak135, should be
    in lower case.

    The document of traveltime says,
    INPUT
    -----

    :MODEL: IASP91 [default], AK135

    It may mislead users that model names are case insensitive.
    It may be better to add some codes to handle both upper case and lower case model name.

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



    • Dongdong Tian
      2013-03-26 06:24:46
      Yes, a lower case iasp91 works on my linux machine.



      2013/3/25 Brian Savage <savage<at>uri.edu>

      Dear Dongdong Tian,

      Does the following work on your linux machine

      SAC> traveltime MODEL iasp91 PICK 0 PHASE Pn Sn

      with a lower case iasp91 ?

      If so, we will change the documentation and possibly the traveltime
      routine.

      Brian



      On Mar 25, 2013, at 10:34 AM, Dongdong Tian wrote:

      Hi,
      There is a small bug of command traveltime.
      Run traveltime like below,

      SAC> fg seis
      SAC> traveltime MODEL IASP91 PICK 0 PHASE Pn Sn
      traveltime: depth: 15.000000 km
      Error: can't find iaspmodel header file "/opt/sac/aux/tables/IASP91.hed"

      SAC itself is case insensitive,but Linux is case sensitive. This command
      tries
      to look for an auxiliary file in Linux, so the model names, iasp91 and
      ak135, should be
      in lower case.

      The document of traveltime says,
      INPUT
      -----

      :MODEL: IASP91 [default], AK135

      It may mislead users that model names are case insensitive.
      It may be better to add some codes to handle both upper case and lower
      case model name.

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



  • Arthur Snoke
    2013-03-26 17:52:27
    I think it suffices to change the documentation.

    Here are the two traveltime help files with my suggested changes.
    Sufficient?

    • Dongdong Tian
      2013-03-27 05:57:48
      Yes, it is better now.


      2013/3/26 Arthur Snoke <snoke<at>vt.edu>

      I think it suffices to change the documentation.

      Here are the two traveltime help files with my suggested changes.
      Sufficient?


Page built 10:19:48 | v.b'ea7a92