Changeset 15521


Ignore:
Timestamp:
05/07/13 23:28:05 (12 years ago)
Author:
Daniela Dorner
Message:
removed logging to console to avoid emails from cron
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/Step2a.sh

    r15400 r15521  
    2323then
    2424   printprocesslog "INFO no image files available for night "$datepath
    25    continue
     25   finish
    2626fi
    2727# write data set file
     
    3434do
    3535   night=`basename ${files[$i-1]} | cut -d_ -f1`
    36    echo "night: "$night
    3736   run=`basename ${files[$i-1]} | cut -d_ -f2`
    38    echo "run: "$run
     37   printprocesslog "DEBUG night: "$night" run: "$run
    3938   dsfile=$dspath"/dataset"$night"_"$run".txt"
    40    echo $dsfile
     39   #echo $dsfile
    4140   printprocesslog "INFO writing dataset file "$dsfile
    4241   # write dataset only if merpp-log is available to make sure that star-file is complete
     
    4746      echo `dirname ${files[$i-1]}`" "`basename ${files[$i-1]}` > $dsfile
    4847   else
    49       echo "merpp still running - wait with file "${files[$i-1]}
     48      printprocesslog "INFO merpp still running - wait with file "${files[$i-1]}
    5049      continue
    5150   fi
     
    5453   if ! ls $logfile >/dev/null 2>&1
    5554   then
     55      # fixme: why is this double?
    5656      night=`basename ${files[$i-1]} | cut -d_ -f1`
    5757      runid=`basename ${files[$i-1]} | cut -d_ -f2 | cut -d. -f1`
    58       echo "night: "$night
    59       echo "runid: "$runid
     58      #echo "night: "$night
     59      #echo "runid: "$runid
    6060      rawfilepath=$rawdata"/"$datepath"/"
    6161      rawfilename=`basename ${files[$i-1]} | sed -e 's/_I.root/.fits/'`
    62       echo $rawfilepath
    63       echo $rawfilename
     62      #echo $rawfilepath
     63      #echo $rawfilename
    6464      rawfile=`find $rawfilepath -name $rawfilename*`
    65       ls $rawfile
     65      printprocesslog "INFO processing "$rawfile
    6666      drivefile=$auxdata"/"$datepath"/"`basename ${files[$i-1]} | cut -d_ -f1`".DRIVE_CONTROL_SOURCE_POSITION.fits"
    67       ls $drivefile
     67      printprocesslog "INFO getting coordinates from "$drivefile
    6868      tstopi=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep TSTOPI | grep -E -o '[0-9]+'`
    6969      tstopf=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep TSTOPF | grep -E -o '[.][0-9]+'`
     
    7676         then
    7777            printprocesslog "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile
    78             echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile
     78            #echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile
    7979            continue
    8080         fi
     
    8282         then
    8383            printprocesslog "WARN coordinates "${coordinates[@]}
    84             echo "WARN coordinates "${coordinates[@]}
     84            #echo "WARN coordinates "${coordinates[@]}
    8585            continue
    8686         fi
    8787      else
    8888         printprocesslog "DEBUG coordinates "${coordinates[@]}
    89          echo "DEBUG coordinates "${coordinates[@]}
     89         #echo "DEBUG coordinates "${coordinates[@]}
    9090         query="SELECT fSourceKEY FROM RunInfo WHERE fNight="$night" AND fRunID="$runid
    9191         sourcekey=`sendquery`
     
    9393         then
    9494            printprocesslog "WARN sourcekey empty - coordinates"${coordinates[@]}
    95             echo "WARN sourcekey empty - coordinates"${coordinates[@]}" for "$rawfile
     95            #echo "WARN sourcekey empty - coordinates"${coordinates[@]}" for "$rawfile
    9696            continue
    9797         fi
     
    101101         then
    102102            printprocesslog "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile
    103             echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile
     103            #echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile
    104104            continue
    105105         fi
     
    107107         then
    108108            printprocesslog "WARN coordinates "${coordinates[@]}
    109             echo "WARN coordinates "${coordinates[@]}
     109            #echo "WARN coordinates "${coordinates[@]}
    110110            continue
    111111         fi
    112112      fi
    113113
    114       echo $logfile" "${files[$i-1]}" -"${coordinates[0]}"-"${coordinates[1]}
    115       echo "`dirname $0`/RunGanymed.sh $dsfile "${coordinates[0]}" "${coordinates[1]}
     114      printprocesslog "DEBUG "$logfile" "${files[$i-1]}" -"${coordinates[0]}"-"${coordinates[1]}
     115      printprocesslog "DEBUG `dirname $0`/RunGanymed.sh $dsfile "${coordinates[0]}" "${coordinates[1]}
    116116      `dirname $0`/RunGanymed.sh $dsfile ${coordinates[0]} ${coordinates[1]}
    117117      numganymeds=`echo " $numganymeds + 1 " | bc -l`
    118118   fi
    119119done
    120 echo "found "$numganymeds" ganymeds."
     120printprocesslog "INFO found "$numganymeds" ganymeds."
    121121   
    122122#   # get list of 5min-dataset-files as starting point
Note: See TracChangeset for help on using the changeset viewer.