Changeset 14875


Ignore:
Timestamp:
02/06/13 10:50:23 (12 years ago)
Author:
Daniela Dorner
Message:
removed not needed logging and logfile, added comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/FillMoonInfo.sh

    r14849 r14875  
    88printprocesslog "INFO starting $0 with option doupdate="$doupdate
    99
    10 logfile=$runlogpath"/FillMoonInfo-"$datetime".log"
    11 date >> $logfile
     10#logfile=$runlogpath"/FillMoonInfo-"$datetime".log"
     11#date >> $logfile
    1212
    1313# get last 3, 6 or 9 nights
     
    1717        )
    1818#dates=( `find $auxdata -mindepth 3 -type d | sort -r | sed "s/\${auxdata_for_sed}//g" | sed -e 's/^\///'` )
    19 echo ${dates[@]}
     19
    2020printprocesslog "INFO processing the following night(s): "${dates[@]}
    21 echo  `date`": processing the following night(s): "${dates[@]} >> $logfile 2>&1
     21#echo  `date`": processing the following night(s): "${dates[@]} #>> $logfile 2>&1
    2222
    2323# do filling of aux data
     
    2929      continue
    3030   fi
    31    echo "processing date "$date
     31   printprocesslog "INFO processing date "$date
     32   #echo "INFO processing date "$date
    3233
    3334   # get file numbers from DB
     
    5253   do
    5354      printprocesslog "INFO processing file number "$runnumber"_"`printf %03d $filenum`
    54       echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum` >> $logfile 2>&1
     55      #echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum` # >> $logfile 2>&1
    5556     
    5657      # get input info from DB
     58      #  query 999 in case value is empty to easily recognize this case
    5759      query="SELECT if (isnull(fRightAscension), 999, fRightAscension), "
    5860      query=$query" if (isnull(fDeclination), 999, fDeclination), "
     
    6062      query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
    6163      info=( `sendquery` )
    62       echo ${info[@]}
     64      #echo ${info[@]}
    6365      #echo "/home/fact/FACT++.db/moon "${info[2]} ${info[3]}" --ra=${info[0]} --dec=${info[1]} 2>/dev/null"
    6466      if [ "${info[0]}" == "999" ] && [ "${info[1]}" == "999" ]
     
    7072      # return values of the programm
    7173      # timestamp sunzd moon-visible moondisk moonzd angletomoon angletosun
    72       echo ${lightinfo[@]}
     74      #echo ${lightinfo[@]}
    7375     
    7476      # build query to update runinfo in DB
    7577      query="UPDATE RunInfo SET fSunZenithDistance="${lightinfo[2]}", fMoonDisk="${lightinfo[4]}
    7678      query=$query", fMoonZenithDistance="${lightinfo[5]}
    77       echo $query
    7879      if [ "${info[0]}" != "999" ] && [ "${info[1]}" != "999" ]
    7980      then
     
    8384      # add where condition
    8485      query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
    85       echo $query
     86      #echo $query
    8687      # send query to DB
    8788      sendquery >/dev/null
Note: See TracChangeset for help on using the changeset viewer.