#!/usr/bin/ksh # # green_ascii2all_new.ksh # # This script generates lines for a IDL batch # file which creates gmag cdfs for Greenland data files. (New provider) # # Arguments: # # Author: Patrick Cruce # Created: May 14,2010 # # Based heavily of green_ascii2all.ksh by Tim Quinn # # ## 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 . $THMSOC/src/config/wget_green_gmag.config processdate=$(date +%Y%m%d) #LOGFILE=${LOGDIR}/webdownloads/green_ascii2all_new_${processdate}_$$ #IDLLOG=${LOGDIR}/webdownloads/green_ascii2all_new_idl_${processdate}_$$ # ## ## Begin Work ## # #echo ":$$:green_ascii2all_new: " >> $LOGFILE #echo ":$$:green_ascii2all_new: Starting green_ascii2all_new at $(date)" >> $LOGFILE #echo ":$$:green_ascii2all_new: " >> $LOGFILE os=$(uname -s) # ## Find New Files #files=$(ls -1 $GMAGWORKDIR) LOGFILE=/home/thmsoc/lphilpotts_stuff/greenland_test/testgreen_output files=$(ls -1 $GMAGWORKDIR/*.sec) 2>$LOGFILE # for f in $files # do # echo $f # f=$(basename $f) # echo $f #done ## Cleanup # exit 0