Thread: Source code for SAC-IO libraries

Started: 2010-08-11 18:27:37
Last activity: 2010-08-20 11:02:15
Topics: SAC Help
Aldo Vesnaver
2010-08-11 18:27:37

I asked and received the most recent version of SAC,
WITH the option of source code inclusion for both Linux and CigWin
environment. However, I cannot find the source code of the SAC-IO
library in any (sub)-directory. I need it to re-compile that
library code on my PC in Windows, for linking it to FORTRAN codes
I have been developing.
The SAC (101.4 version) installation was succesful on Linux
and the software is working properly. I could also succesfully
link the BINARY version of the library (sacio.a) to a FORTRAN
code of mine in Linux; however, without the source code
of the same library (sacio) or a Windows-compiled object
of it, I cannot complete my work in Windows.

Any hint?

Thanks!

Aldo Vesnaver


-------------------------------------------------
Aldo Vesnaver, OGS (GdL Department)
Borgo Grotta Gigante 42/c
34010 Trieste (Italy)

E-mail: avesnaver<at>inogs.it
Office phone: +39 040 2140459
Home phone: +39 040 416247
http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559



  • Brian Savage
    2010-08-11 18:18:23
    Dear Aldo Vesnaver,

    If you requested the SAC source, you should be able to compile sac and
    the sacio library on a windows machine and a linux machine.

    Due to licensing restrictions we are not able to provide a Windows
    binary version, only source.

    Brian
    savage<at>uri.edu

    On Aug 11, 2010, at 5:27 AM , Aldo Vesnaver wrote:


    I asked and received the most recent version of SAC,
    WITH the option of source code inclusion for both Linux and CigWin
    environment. However, I cannot find the source code of the SAC-IO
    library in any (sub)-directory. I need it to re-compile that
    library code on my PC in Windows, for linking it to FORTRAN codes
    I have been developing.
    The SAC (101.4 version) installation was succesful on Linux
    and the software is working properly. I could also succesfully
    link the BINARY version of the library (sacio.a) to a FORTRAN
    code of mine in Linux; however, without the source code
    of the same library (sacio) or a Windows-compiled object
    of it, I cannot complete my work in Windows.

    Any hint?

    Thanks!

    Aldo Vesnaver


    -------------------------------------------------
    Aldo Vesnaver, OGS (GdL Department)
    Borgo Grotta Gigante 42/c
    34010 Trieste (Italy)

    E-mail: avesnaver<at>inogs.it
    Office phone: +39 040 2140459
    Home phone: +39 040 416247
    http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559


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



    • Aldo Vesnaver
      2010-08-12 02:35:26

      Of course, I understand it. But to compile any source code you need
      the code. This is the problem: the code is missing, or I am unable
      to find it. (I guess it is a glitch in the delivery).
      Does anybody know where it is?

      Thanks a lot!

      Aldo


      Quoting "Brian Savage" <savage<at>uri.edu>:

      Dear Aldo Vesnaver,

      If you requested the SAC source, you should be able to compile sac and
      the sacio library on a windows machine and a linux machine.

      Due to licensing restrictions we are not able to provide a Windows
      binary version, only source.

      Brian
      savage<at>uri.edu

      On Aug 11, 2010, at 5:27 AM , Aldo Vesnaver wrote:


      I asked and received the most recent version of SAC,
      WITH the option of source code inclusion for both Linux and CigWin
      environment. However, I cannot find the source code of the SAC-IO
      library in any (sub)-directory. I need it to re-compile that
      library code on my PC in Windows, for linking it to FORTRAN codes
      I have been developing.
      The SAC (101.4 version) installation was succesful on Linux
      and the software is working properly. I could also succesfully
      link the BINARY version of the library (sacio.a) to a FORTRAN
      code of mine in Linux; however, without the source code
      of the same library (sacio) or a Windows-compiled object
      of it, I cannot complete my work in Windows.

      Any hint?

      Thanks!

      Aldo Vesnaver


      -------------------------------------------------
      Aldo Vesnaver, OGS (GdL Department)
      Borgo Grotta Gigante 42/c
      34010 Trieste (Italy)

      E-mail: avesnaver<at>inogs.it
      Office phone: +39 040 2140459
      Home phone: +39 040 416247
      http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559


      _______________________________________________
      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




      --
      -------------------------------------------------
      Aldo Vesnaver, OGS (GdL Department)
      Borgo Grotta Gigante 42/c
      34010 Trieste (Italy)

      E-mail: avesnaver<at>inogs.it
      Office phone: +39 040 2140459
      Home phone: +39 040 416247
      http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559


      ----------------------------------------------------------------
      This message was sent using IMP, the Internet Messaging Program.



      • Arthur Snoke
        2010-08-11 20:51:27
        Caveat: I do not use a PC.

        That said, SAC "source" is in various subdirectories of sac-version/src.
        All code is written in C, and is best build using gcc. The sacio
        library has routines that can be used in Fortran programs, as you have
        done on your Linux system. There is no guarantee that the code will work
        with all Fortran compilers: gfortran and various flavors of f77/g77 work
        for me on Macs, and the Sun Fortran compiler works on Sun Solaris.

        If you want to work with the source, you can find out the routines in the
        sacio library that is built on Linux or Cygwin and find them in the src
        tree.

        The only way SAC works on a PC is through Cygwin.

        Or have I misunderstood your question?

        Arthur


        On Wed, 11 Aug 2010, Aldo Vesnaver wrote:


        Of course, I understand it. But to compile any source code you need
        the code. This is the problem: the code is missing, or I am unable
        to find it. (I guess it is a glitch in the delivery).
        Does anybody know where it is?

        Thanks a lot!

        Aldo


        Quoting "Brian Savage" <savage<at>uri.edu>:

        Dear Aldo Vesnaver,

        If you requested the SAC source, you should be able to compile sac and
        the sacio library on a windows machine and a linux machine.

        Due to licensing restrictions we are not able to provide a Windows
        binary version, only source.

        Brian
        savage<at>uri.edu

        On Aug 11, 2010, at 5:27 AM , Aldo Vesnaver wrote:


        I asked and received the most recent version of SAC,
        WITH the option of source code inclusion for both Linux and CigWin
        environment. However, I cannot find the source code of the SAC-IO
        library in any (sub)-directory. I need it to re-compile that
        library code on my PC in Windows, for linking it to FORTRAN codes
        I have been developing.
        The SAC (101.4 version) installation was succesful on Linux
        and the software is working properly. I could also succesfully
        link the BINARY version of the library (sacio.a) to a FORTRAN
        code of mine in Linux; however, without the source code
        of the same library (sacio) or a Windows-compiled object
        of it, I cannot complete my work in Windows.

        Any hint?

        Thanks!

        Aldo Vesnaver


        -------------------------------------------------
        Aldo Vesnaver, OGS (GdL Department)
        Borgo Grotta Gigante 42/c
        34010 Trieste (Italy)

        E-mail: avesnaver<at>inogs.it
        Office phone: +39 040 2140459
        Home phone: +39 040 416247
        http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559


        _______________________________________________
        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




        --
        -------------------------------------------------
        Aldo Vesnaver, OGS (GdL Department)
        Borgo Grotta Gigante 42/c
        34010 Trieste (Italy)

        E-mail: avesnaver<at>inogs.it
        Office phone: +39 040 2140459
        Home phone: +39 040 416247
        http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559


        ----------------------------------------------------------------
        This message was sent using IMP, the Internet Messaging Program.


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

      • Brian Savage
        2010-08-11 21:00:54
        Dear Aldo,

        If you requested the source, please contact the person at IRIS that
        sent you the email to resolve this issue.

        Brian Savage
        savage<at>uri.edu


        On Aug 11, 2010, at 1:35 PM , Aldo Vesnaver wrote:


        Of course, I understand it. But to compile any source code you need
        the code. This is the problem: the code is missing, or I am unable
        to find it. (I guess it is a glitch in the delivery).
        Does anybody know where it is?

        Thanks a lot!

        Aldo


        Quoting "Brian Savage" <savage<at>uri.edu>:

        Dear Aldo Vesnaver,

        If you requested the SAC source, you should be able to compile sac
        and
        the sacio library on a windows machine and a linux machine.

        Due to licensing restrictions we are not able to provide a Windows
        binary version, only source.

        Brian
        savage<at>uri.edu

        On Aug 11, 2010, at 5:27 AM , Aldo Vesnaver wrote:


        I asked and received the most recent version of SAC,
        WITH the option of source code inclusion for both Linux and CigWin
        environment. However, I cannot find the source code of the SAC-IO
        library in any (sub)-directory. I need it to re-compile that
        library code on my PC in Windows, for linking it to FORTRAN codes
        I have been developing.
        The SAC (101.4 version) installation was succesful on Linux
        and the software is working properly. I could also succesfully
        link the BINARY version of the library (sacio.a) to a FORTRAN
        code of mine in Linux; however, without the source code
        of the same library (sacio) or a Windows-compiled object
        of it, I cannot complete my work in Windows.

        Any hint?

        Thanks!

        Aldo Vesnaver


        -------------------------------------------------
        Aldo Vesnaver, OGS (GdL Department)
        Borgo Grotta Gigante 42/c
        34010 Trieste (Italy)

        E-mail: avesnaver<at>inogs.it
        Office phone: +39 040 2140459
        Home phone: +39 040 416247
        http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559


        _______________________________________________
        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




        --
        -------------------------------------------------
        Aldo Vesnaver, OGS (GdL Department)
        Borgo Grotta Gigante 42/c
        34010 Trieste (Italy)

        E-mail: avesnaver<at>inogs.it
        Office phone: +39 040 2140459
        Home phone: +39 040 416247
        http://it.linkedin.com/pub/aldo-vesnaver/9/baa/559


        ----------------------------------------------------------------
        This message was sent using IMP, the Internet Messaging Program.




  • Ayele
    2010-08-20 11:02:15
    Dear all,

    I run the following command after reading file and removing trend mean with most parameters being the defaults.

    SAC> spectrogram ymin 0 ymax 10

    When I was expecting the spectrogram plot on the screen, I got the following error message:

    Window size: 39 Overlap: 19 FFT size: 128
    Warning: ORDER begin reset to 1/2 length of correlation window.
    ORDER = 19
    Spectrogram dimensions are 512 by 10888 .
    X Error of failed request: BadMatch (invalid parameter attributes)
    Major opcode of failed request: 72 (X_PutImage)
    Serial number of failed request: 6611
    Current serial number in output stream: 6613

    Can someone comment on the possible reason and suggest a solution?


    Regards,

    Atalay






22:32:28 v.22510d55