Thread: Possible improvements of bin/sacinit.sh

Started: 2008-08-31 21:07:18
Last activity: 2008-08-31 23:29:48
Topics: SAC Developers
Kuang He
2008-08-31 21:07:18
Hi,

I just found some little things that could be improved for bin/sacinit.sh .

$ cat bin/sacinit.sh
[snipped]
# Initialize the SAC Enviornment
export SACHOME=/usr/local/jas/sac

"export SACHOME=/usr/local/sac" may be a better general setting here.

[snipped]

# SAC_USE_DATABASE
# Undefined or 1 -- Use SeisMgr Database ( Default )
# 0 -- Do Not Use SeisMgr Database
# The SeisMgr database attempts to keep the CSS data fields in line
# with those in the SAC header. If you are handling CSS data it
# would be wise to keep the database on. Using the SeisMgr database
# currently can be very slow due when handling hundreds of files
# and turning it off should show a dramatic speed increase.
# Default: SAC_USE_DATABASE 1

Actually, I believe the default value of SAC_USE_DATABASE has been changed to 0.

[snipped]

Best regards,

--
Kuang He
Department of Physics
University of Connecticut
Storrs, CT 06269-3046

Tel: +1.860.486.4919
Web: http://www.phys.uconn.edu/~he/

  • Arthur Snoke
    2008-08-31 23:29:48
    Thanks for your feedback. See comments interspersed.

    Kuang He wrote:
    Hi,

    I just found some little things that could be improved for bin/sacinit.sh .

    $ cat bin/sacinit.sh
    [snipped]
    # Initialize the SAC Enviornment
    export SACHOME=/usr/local/jas/sac

    "export SACHOME=/usr/local/sac" may be a better general setting here.


    This was carelessness on my part in preparing the binary distributions. In the
    source distribution, the first few lines in sacinit.sh.in are

    # After selecting the environment options, the script can be run as a
    # stand-alone initialization, but to preserve the environment one should
    # put them directly in the session start-up scripts.
    #
    # Initialize the SAC Environment
    export SACHOME=__SAC_PREFIX__
    export PATH=${PATH}:${SACHOME}/bin
    export SACAUX=${SACHOME}/aux

    Accordingly, SACHOME gets set to whatever the PREFIX was set to be in the
    ./configure stage. On most machines on which I prepare the binary
    distributions, I do not have root privileges and have the system manager set up
    a directory /usr/local/jas for which I am the owner. In hindsight, and in the
    future, I will edit the sacinit.sh and sacinit.csh before making the final
    .tar.gz file -- taking out /jas.

    [snipped]

    # SAC_USE_DATABASE
    # Undefined or 1 -- Use SeisMgr Database ( Default )
    # 0 -- Do Not Use SeisMgr Database
    # The SeisMgr database attempts to keep the CSS data fields in line
    # with those in the SAC header. If you are handling CSS data it
    # would be wise to keep the database on. Using the SeisMgr database
    # currently can be very slow due when handling hundreds of files
    # and turning it off should show a dramatic speed increase.
    # Default: SAC_USE_DATABASE 1

    Actually, I believe the default value of SAC_USE_DATABASE has been changed to 0.

    Earlier we had 1 as the default but changed to 0 and forgot to change these
    files. That has been done now.


15:53:38 v.b4412d20