Skip to content

Instantly share code, notes, and snippets.

@alexrudy
Created May 4, 2016 16:32
Show Gist options
  • Save alexrudy/0f55c09ca34bcaaaaa5e88b379fa784b to your computer and use it in GitHub Desktop.
Save alexrudy/0f55c09ca34bcaaaaa5e88b379fa784b to your computer and use it in GitHub Desktop.
function setup_OSIRIS {
export OSIRIS_ROOT=$1
export OSIRIS_WROOT=${2:-$OSIRIS_ROOT}
# Location of data files
export OSIRIS_DRP_DATA_PATH=$OSIRIS_WROOT/data/
# Set the queue directory for any pipelines started by this user
export DRF_QUEUE_DIR=$OSIRIS_WROOT/drf_queue
# Set a default for the overall (general) DRP log files to go. These log
# files are created each time the pipeline backbone is started
export OSIRIS_DRP_DEFAULTLOGDIR=$OSIRIS_WROOT/drf_queue/logs
# This is where the backbone IDL code looks for the shared libraries that
# implement C code called by the IDL code.
export OSIRIS_DRP_EXTERNAL_LIB_DIR=$OSIRIS_ROOT/modules/source
# This is where the backbone IDL code looks for the shared libraries that
# implement C code called by the IDL code.
export OSIRIS_BACKBONE_DIR=$OSIRIS_ROOT/backbone
# Specify where the configuration filename is stored. This file just
# contains the real name of the configuration file.
export OSIRIS_DRP_CONFIG_FILE=$OSIRIS_ROOT/backbone/SupportFiles/local_osirisDRPConfigFile
export OSIRIS_IDL_BASE=$OSIRIS_ROOT
export PATH=${PATH}:${OSIRIS_ROOT}/scripts
if [[ $IDL_PATH != *"${OSIRIS_ROOT}/../ql2"* ]]; then
export IDL_PATH=+${OSIRIS_ROOT}/../ql2:/usr/local/pkg/astron/pro:${IDL_PATH:-<IDL_DEFAULT>}
fi
export QL_FILEDIR=/usr/local/osiris/ql2
# Fixes a bug with awt on OSX
export JAVA_TOOL_OPTIONS='-Djava.awt.headless=false'
function odrp {
idl ${OSIRIS_BACKBONE_DIR}/osiris_drp_backbone_startup.pro
}
}
if [ -d "/usr/local/osiris/drs/scripts/" ]; then
# Contents of /usr/local/osiris/drs/scripts/
setup_OSIRIS /usr/local/osiris/drs
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment