Thread: ploting with macros

Started: 2008-03-06 19:21:36
Last activity: 2008-03-07 17:32:57
Topics: SAC Help
Sonia Castro Alarcon
2008-03-06 19:21:36
Hi, I'm not sure if this is the email to write to find help but I didn't find other.

I'm trying to make a macro for ploting with the sgftops options. I use the command
sgftops f001.sgf file.eps 1 si
to set the options
*x translation :1
*y translation :1
*rotation angle:0
*scale...........:0.9
but I couldn't find the way to make the macro answer for this variables by itself and that makes I couldn't run it easy and in a loop for all the files.
Can you help me please?
thanks


Sonia Castro Alarcón
Universidad de los Andes

UBI CARITAS ET AMOR
DEUS IBI EST

  • Arthur Snoke
    2008-03-06 19:29:53
    sgftops is not internal to sac so would not understand sac macro language.

    What I do is have a .csh script that runs sgftops. It can be called from
    within a sac macro so can be part of a loop. The scripts in sac/bin
    sgftoeps.csh and sgftox.csh are examples of such a script.

    I hope this helps.

    On Thu, 6 Mar 2008, Sonia Castro Alarcon wrote:

    Hi, I'm not sure if this is the email to write to find help but I didn't find other.

    I'm trying to make a macro for ploting with the sgftops options. I use the command
    sgftops f001.sgf file.eps 1 si
    to set the options
    *x translation :1
    *y translation :1
    *rotation angle:0
    *scale...........:0.9
    but I couldn't find the way to make the macro answer for this variables by itself and that makes I couldn't run it easy and in a loop for all the files.
    Can you help me please?
    thanks


    Sonia Castro Alarcón
    Universidad de los Andes

    UBI CARITAS ET AMOR
    DEUS IBI EST

  • Xuzhang Shen
    2008-03-07 17:32:57
    hi, I can't compile the SAC under cygwin, some problem in proto.h file.

    Who has compiled the SAC under cygwin successfully? I hope help from you.

    Thanks.


    Xuzhang Shen

    Lanzhou Institute of Seismology, China Earquake Administration (CEA)

    450 Donggan Xilu, Lanzhou, Gansu Province, 730000, China

    Tel: +86-931-8265008

    E_mail: shenxzh<at>gmail.com shenxz<at>gssb.gov.cn




    2008-02-29





    2008-03-07



    发件人: Sonia Castro Alarcon
    发送时间: 2008-03-07 00:24:44
    收件人: sac-help<at>iris.washington.edu
    抄送:
    主题: [SAC-HELP] ploting with macros

    Hi, I'm not sure if this is the email to write to find help but I didn't find other.

    I'm trying to make a macro for ploting with the sgftops options. I use the command
    sgftops f001.sgf file.eps 1 si
    to set the options
    *x translation :1
    *y translation :1
    *rotation angle:0
    *scale...........:0.9
    but I couldn't find the way to make the macro answer for this variables by itself and that makes I couldn't run it easy and in a loop for all the files.
    Can you help me please?
    thanks


    Sonia Castro Alarcón
    Universidad de los Andes

    UBI CARITAS ET AMOR
    DEUS IBI EST


    • Brian Savage
      2008-03-07 16:39:09
      Xuheng Shen

      Not trying to be rude here, but
      you need to fully explain the problem before we can help diagnose it.

      Are you using the latest version. If not, please obtain the Cygwin
      SAC source from IRIS.
      If you are using an earlier version than 101.1, these earlier
      versions of SAC are not supported on Cygwin.

      Beyond that, you need to email the error that is output to the screen
      during the
      "problem in proto.h file".

      Cheers
      Brian Savage

      On Mar 6, 2008, at 8:32 PM, "" <shenxzh<at>gmail.com>
      <shenxzh<at>gmail.com> wrote:

      hi, I can't compile the SAC under cygwin, some problem in proto.h
      file.

      Who has compiled the SAC under cygwin successfully? I hope help
      from you.

      Thanks.


      Xuzhang Shen

      Lanzhou Institute of Seismology, China Earquake Administration (CEA)

      450 Donggan Xilu, Lanzhou, Gansu Province, 730000, China

      Tel: +86-931-8265008

      E_mail: shenxzh<at>gmail.com shenxz<at>gssb.gov.cn




      2008-02-29





      2008-03-07



      发件人: Sonia Castro Alarcon
      发送时间: 2008-03-07 00:24:44
      收件人: sac-help<at>iris.washington.edu
      抄送:
      主题: [SAC-HELP] ploting with macros

      Hi, I'm not sure if this is the email to write to find help but I
      didn't find other.

      I'm trying to make a macro for ploting with the sgftops options. I
      use the command
      sgftops f001.sgf file.eps 1 si
      to set the options
      *x translation :1
      *y translation :1
      *rotation angle:0
      *scale...........:0.9
      but I couldn't find the way to make the macro answer for this
      variables by itself and that makes I couldn't run it easy and in a
      loop for all the files.
      Can you help me please?
      thanks


      Sonia Castro Alarcón
      Universidad de los Andes

      UBI CARITAS ET AMOR
      DEUS IBI EST

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




23:03:38 v.01697673