Thread: sac jpeg outfile

Started: 2007-05-12 09:48:35
Last activity: 2007-05-14 16:02:42
Topics: SAC Help
Murat BEYHAN
2007-05-12 09:48:35
Dear All,
I'm new user.
I would like to print out the images which is the result of following
script as jpeg file
SAC>plotpk perplot 5
how can I save the result of this command into the jpeg file
Regards...
MURAT

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


  • Jorge Luis de Souza
    2007-05-13 17:46:27

    Hi Murat,

    Unfortunately, SAC does not have a direct output to jpeg format. However,
    you can generate PostScript files via SAC. In order to do this you should
    follow the sequence below.

    SAC> bd sgf
    SAC> plotpk perplot 5

    After the sequence above, you generate a file called "f001.sgf". Then you
    can convert this file to PostScript applying the following SAC command :

    SAC> sgftops f001.sgf f001.ps

    The file "f001.ps" can be converted to jpeg format through any other
    software.


    Bye,

    Jorge Luis de Souza



    Quoting Murat Beyhan <beyhan<at>deprem.gov.tr>:

    Dear All,
    I'm new user.
    I would like to print out the images which is the result of following
    script as jpeg file
    SAC>plotpk perplot 5
    how can I save the result of this command into the jpeg file
    Regards...
    MURAT

    --
    This message has been scanned for viruses and
    dangerous content by MailScanner, and is
    believed to be clean.

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






    • Murat BEYHAN
      2007-05-14 16:02:42
      Dear Tuna and Jorge,

      Thank you for your help.
      I have tried and I have succeeded to apply sac commands for produce ps file
      I have applied the following commands as you explained.
      SAC>bg sgf
      SAC>read *.*
      SAC>p1 p 5

      then I have used sgf tool for create ps file.

      [murat@l101550a sp]$ sgftops f001.sgf figure.ps 2 s
      x translation : 0.9
      y translation : 0.9
      rotation angle: 0
      scale........ : 1
      [murat@l101550a sp]$ convert waveform1.ps waveform1.jpg
      thats all

      I start to love SAC

      regards
      Murat

      --
      This message has been scanned for viruses and
      dangerous content by MailScanner, and is
      believed to be clean.


Page built 06:29:32 | v.090361a2