#!/usr/bin/ksh # # reprocess_lunar_orbits.ksh # # This script regenerates lunar orbit plots for specified date and duration # # Created by Patrick Cruce(pcruce@igpp.ucla.edu), # Based almost entirely on make_asi_orbits.ksh by Tim Quinn # Created: Dec 2009 # # ## Set the environment variables # if [[ -z $THMSOC ]] then THMSOC=/disks/socware/thmsoc_dp_current export THMSOC fi . $THMSOC/src/config/soc_it_to_me.config . $THMSOC/src/config/setup_themis.bourne # ## Start IDL Process # cd ${SCRATCH}/asi_production idl < ~/pcruces_stuff/lunar_orbit_sse_batchfile2 idlcheck=$? if (( $idlcheck != 0 )) then printf "%s\n" "script: $0" \ "Warning: ASI Production Problem" | mailx -s "THEMIS ASI Production Problem" $SOC_EMAIL fi # ## Cleanup # exit 0