Thread: matlab

Started: 2010-03-29 16:53:05
Last activity: 2010-04-01 17:28:02
Topics: SAC Help
lauretta
2010-03-29 16:53:05

Hi, I need to use matlab within sac but I've some problems.
lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ ./bin/sacinit.shlauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ export SACHOME=/media/ACERDATA/software/sac101.2-linux86lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ export PATH=${PATH}:${SACHOME}/binlauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ export SACAUX=${SACHOME}/auxlauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ export SAC_USE_DATABASE=0lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ export SAC_PPK_LARGE_CROSSHAIRS=1lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ export LIBRARY_PATH=$LIBRARY_PATH:/media/ACERDATA/software/matlab2008/bin/glnx86/libeng.solauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ export LIBRARY1_PATH=$LIBRARY1_PATH:/media/ACERDATA/software/matlab2008/bin/glnx86/libmex.solauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ /bin/sac SEISMIC ANALYSIS CODE [03/07/2007 (Version 101.0)] Copyright 1995 Regents of the University of California
SAC> R /home/lauretta/20070113_1512A/20070113_151222.IV.AGST.00.SHZ.sacSAC> PLOTSAC> MAT ERROR 8002: Cannot link to MATLAB shared object:SAC> SETMAT /media/ACERDATA/software/matlab2008/bin/glnx86/MATLABSAC> MAT ERROR 8002: Cannot link to MATLAB shared object:
what's wrong?
help me, please!


_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
https://signup.live.com/signup.aspx?id=60969
  • Brian Savage
    2010-04-01 17:28:02
    Dear Laura,

    Are you trying to use the SAC's Matlab interface or do you want to
    manipulate data in Matlab.

    If you would like to manipulate data in matlab there are routines to
    do this in (v. 101.2)
    sac/utils/getsacdata.m
    sac/utils/padcat.m
    sac/utils/readsac.m
    sac/utils/sacstruct.m
    sac/utils/writesac.m

    If you would like to use SAC's Matlab interface (running Matlab from
    in the SAC program) this is more difficult. First, make sure the SAC
    was compiled with Matlab support (not the default) and then make sure
    you have the libraries required (libeng and libmex).

    Brian
    savage<at>uri.edu




    On Mar 29, 2010, at 3:53 AM , Laura Parisi wrote:

    Hi,
    I need to use matlab within sac but I've some problems.

    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-
    linux86$ ./bin/sacinit.sh
    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$
    export SACHOME=/media/ACERDATA/software/sac101.2-linux86
    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-
    linux86$ export PATH=${PATH}:${SACHOME}/bin
    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$
    export SACAUX=${SACHOME}/aux
    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$
    export SAC_USE_DATABASE=0
    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$
    export SAC_PPK_LARGE_CROSSHAIRS=1
    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$
    export LIBRARY_PATH=$LIBRARY_PATH:/media/ACERDATA/software/
    matlab2008/bin/glnx86/libeng.so
    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$
    export LIBRARY1_PATH=$LIBRARY1_PATH:/media/ACERDATA/software/
    matlab2008/bin/glnx86/libmex.so
    lauretta@lauretta-laptop:/media/ACERDATA/software/sac101.2-linux86$ /
    bin/sac SEISMIC ANALYSIS CODE [03/07/2007 (Version 101.0)]
    Copyright 1995 Regents of the University of California

    SAC> R /home/lauretta/20070113_1512A/20070113_151222.IV.AGST.
    00.SHZ.sac
    SAC> PLOT
    SAC> MAT
    ERROR 8002: Cannot link to MATLAB shared object:
    SAC> SETMAT /media/ACERDATA/software/matlab2008/bin/glnx86/MATLAB
    SAC> MAT
    ERROR 8002: Cannot link to MATLAB shared object:

    what's wrong?

    help me, please!



    Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign
    up now._______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help


11:24:46 v.b3198453