Thread: rtrend

Started: 2016-11-29 01:02:02
Last activity: 2016-11-30 17:34:17
Topics: SAC Help
reza
2016-11-29 01:02:02
Hi,

I found a problem when I tried to call RTR_SLP variable:

rtrend
evaluate to X %RTR_SLP

and here is the SAC error:
Could not find variable RTR


Reza

  • George Helffrich
    2016-11-29 06:42:38
    Dear Reza -

    This may be a bug, but an interim workaround involves avoiding the use of EVALUATE. Try SETBB:

    SETBB X %RTR_SLP%

    and then you can use %X% in calculations/expressions later (like you evidently intended by using EVALUATE).

    On 28 Nov 2016, at 22:33, reza <re.rezaei<at>gmail.com> wrote:


    Hi,

    I found a problem when I tried to call RTR_SLP variable:

    rtrend
    evaluate to X %RTR_SLP

    and here is the SAC error:
    Could not find variable RTR


    Reza



    ----------------------
    SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

    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


    • reza
      2016-11-29 18:27:34
      Dear George,

      Same error by %RTR_SLP%. I could not figure out why SAC cannot find VARS
      variable like RTR_SLP.

      Could you please look over that and run it on your machine.

      On Mon, Nov 28, 2016 at 5:13 PM, George Helffrich <george<at>elsi.jp> wrote:

      Dear Reza -

      This may be a bug, but an interim workaround involves avoiding the use of
      EVALUATE. Try SETBB:

      SETBB X %RTR_SLP%

      and then you can use %X% in calculations/expressions later (like you
      evidently intended by using EVALUATE).

      On 28 Nov 2016, at 22:33, reza <re.rezaei<at>gmail.com> wrote:


      Hi,

      I found a problem when I tried to call RTR_SLP variable:

      rtrend
      evaluate to X %RTR_SLP

      and here is the SAC error:
      Could not find variable RTR


      Reza



      ----------------------
      SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

      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 (http://ds.iris.edu/message-center/topic/sac-help/)

      Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
      Update subscription preferences at http://ds.iris.edu/account/profile/



      • Geo .
        2016-11-29 17:56:24
        Hi Reza,
        As George pointed out, this could indeed be a bug. Try
        rtrend verbose on

        This is suppose to return variables associated with rtrend. When I run
        this, the system hangs. I remember in older versions of SAC, rtrend
        returned these variables automatically. I tested this with IRIS SAC 101.6
        on openSUSE 13.1 (Bottle).

        Januka.


        Januka Attanayake
        Postdoctoral Research Associate

        Institut für Geophysik
        Westfälische Wilhelms - Universität Münster
        CorrensstraBe 24
        48149 Münster
        Germany

        University email: jattanayake<at>uni-muenster.de
        Homepage: http://sites.google.com/site/janukaattanayake/

        On 29 November 2016 at 07:59, reza <re.rezaei<at>gmail.com> wrote:

        Dear George,

        Same error by %RTR_SLP%. I could not figure out why SAC cannot find VARS
        variable like RTR_SLP.

        Could you please look over that and run it on your machine.

        On Mon, Nov 28, 2016 at 5:13 PM, George Helffrich <george<at>elsi.jp> wrote:

        Dear Reza -

        This may be a bug, but an interim workaround involves avoiding the use of
        EVALUATE. Try SETBB:

        SETBB X %RTR_SLP%

        and then you can use %X% in calculations/expressions later (like you
        evidently intended by using EVALUATE).

        On 28 Nov 2016, at 22:33, reza <re.rezaei<at>gmail.com> wrote:


        Hi,

        I found a problem when I tried to call RTR_SLP variable:

        rtrend
        evaluate to X %RTR_SLP

        and here is the SAC error:
        Could not find variable RTR


        Reza



        ----------------------
        SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

        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 (http://ds.iris.edu/message-center/topic/sac-help/)

        Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
        Update subscription preferences at http://ds.iris.edu/account/profile/




        ----------------------
        SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

        Sent from the IRIS Message Center (http://ds.iris.edu/message-center/)
        Update subscription preferences at http://ds.iris.edu/account/profile/



      • George Helffrich
        2016-11-30 00:12:12
        Dear Reza -

        Could be a SAC bug. Try this:

        SAC> fg seismogram
        SAC> rtrend
        Slope and standard deviation are: 0.23040E-03 0.35112E-02
        Intercept and standard deviation are: -0.10188 0.51758E-01
        Data standard deviation is: 0.32054
        Data correlation coefficient is: 0.20771E-02
        SAC> getbb
        NUMERROR = 0
        TABLES = ak135
        RTR_SLP = 0.23040E-03
        RTR_SDSLP = 0.35112E-02
        RTR_YINT = -0.10188
        RTR_SDDTA = 0.32054
        RTR_CORRCF = 0.20771E-02
        SACERROR = FALSE
        RTR_SDYINT = 0.51758E-01
        SAC> message "%RTR_SLP%"
        0.23040E-03
        SAC>

        You should see the BB variables set by rtrend and be able to retrieve their values. If not, it is a bug in blackboard variable handling in the version of SAC you are using.

        On 29 Nov 2016, at 15:57, Reza Rezaei <re.rezaei<at>gmail.com> wrote:

        Dear George,

        Same error by %RTR_SLP%. I could not figure out why SAC cannot find VARS variable like RTR_SLP.

        Could you please look over that and run it on your machine.

        On Mon, Nov 28, 2016 at 5:13 PM, George Helffrich <george<at>elsi.jp> wrote:
        Dear Reza -

        This may be a bug, but an interim workaround involves avoiding the use of EVALUATE. Try SETBB:

        SETBB X %RTR_SLP%

        and then you can use %X% in calculations/expressions later (like you evidently intended by using EVALUATE).

        On 28 Nov 2016, at 22:33, reza <re.rezaei<at>gmail.com> wrote:


        Hi,

        I found a problem when I tried to call RTR_SLP variable:

        rtrend
        evaluate to X %RTR_SLP

        and here is the SAC error:
        Could not find variable RTR


        Reza



        ----------------------
        SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

        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 (http://ds.iris.edu/message-center/topic/sac-help/)

        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


        • reza
          2016-11-29 19:32:39
          Same error again. Of course, I can see BB variables but message "%RTR_SLP%"
          cannot retrieve variable. May be a little bug brings about this, as you
          said.

          Thank you so much.

          On Tue, Nov 29, 2016 at 10:42 AM, George Helffrich (ELSI) <george<at>elsi.jp>
          wrote:

          Dear Reza -

          Could be a SAC bug. Try this:

          SAC> fg seismogram
          SAC> rtrend
          Slope and standard deviation are: 0.23040E-03 0.35112E-02
          Intercept and standard deviation are: -0.10188 0.51758E-01
          Data standard deviation is: 0.32054
          Data correlation coefficient is: 0.20771E-02
          SAC> getbb
          NUMERROR = 0
          TABLES = ak135
          RTR_SLP = 0.23040E-03
          RTR_SDSLP = 0.35112E-02
          RTR_YINT = -0.10188
          RTR_SDDTA = 0.32054
          RTR_CORRCF = 0.20771E-02
          SACERROR = FALSE
          RTR_SDYINT = 0.51758E-01
          SAC> message "%RTR_SLP%"
          0.23040E-03
          SAC>

          You should see the BB variables set by rtrend and be able to retrieve
          their values. If not, it is a bug in blackboard variable handling in the
          version of SAC you are using.

          On 29 Nov 2016, at 15:57, Reza Rezaei <re.rezaei<at>gmail.com> wrote:

          Dear George,

          Same error by %RTR_SLP%. I could not figure out why SAC cannot find VARS
          variable like RTR_SLP.

          Could you please look over that and run it on your machine.

          On Mon, Nov 28, 2016 at 5:13 PM, George Helffrich <george<at>elsi.jp>
          wrote:
          Dear Reza -

          This may be a bug, but an interim workaround involves avoiding the
          use of EVALUATE. Try SETBB:

          SETBB X %RTR_SLP%

          and then you can use %X% in calculations/expressions later (like you
          evidently intended by using EVALUATE).

          On 28 Nov 2016, at 22:33, reza <re.rezaei<at>gmail.com> wrote:


          Hi,

          I found a problem when I tried to call RTR_SLP variable:

          rtrend
          evaluate to X %RTR_SLP

          and here is the SAC error:
          Could not find variable RTR


          Reza



          ----------------------
          SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)

          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 (http://ds.iris.edu/message-center/topic/sac-help/)

          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



13:55:02 v.22510d55