#!/bin/bash # Update OCSSW LUTs # # NOTE: This script is intended to run via crontab, # so the DBVM setup script must be run first (see below). # Run the DBVM setup script (DBVM_HOME is set in the crontab file) source $DBVM_HOME/scripts/dbvm_env.bash # Set up logfile LOG=$LOG_DIR/update_ocssw_lut.log exec >>$LOG exec 2>>$LOG echo "________________________" echo $0 started at `date -u` # OCSSW setup export OCSSWROOT=$DBVM_HOME/apps/ocssw export OCSSW_DEBUG=0 source $OCSSWROOT/OCSSW_bash.env # Update the Aqua LUTs update_luts.py -v aqua if [ $? -ne 0 ]; then echo "Aqua LUT update failed" exit 1 fi # Update the Terra LUTs update_luts.py -v terra if [ $? -ne 0 ]; then echo "Terra LUT update failed" exit 1 fi exit 0