Ignore:
Timestamp:
08/31/15 01:31:37 (9 years ago)
Author:
Daniela Dorner
Message:
removed check of certaindate-variable (now done in getdate())
File:
1 edited

Legend:

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

    r18135 r18321  
    22
    33# new version of the script to run on newdaq
     4#   but can be also used at ISDC
    45
    56# option whether to fill all row or only those where information is missing
     
    2829if [ "$certaindate" != "" ]
    2930then
    30    checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
    31    if [ "$checkstring" = "" ]
    32    then
    33       echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
    34       finish
    35    fi
    3631   getdates $certaindate
    3732else
     
    8075   then
    8176      printprocesslog "WARN empty evaluation of statistic ("$@") for run "$date" "$file
    82       #echo "   ---> "$@
    83    fi
    84    #echo "ev: "$evaluation
     77   fi
    8578   min=`echo $evaluation | grep -E -o 'Min:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Min:\ //'`
    8679   max=`echo $evaluation | grep -E -o 'Max:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Max:\ //'`
     
    8881   mean=`echo $evaluation | grep -E -o 'Avg:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Avg:\ //'`
    8982   rms=`echo $evaluation | grep -E -o 'Rms:\ [-]?[0-9]+[.]?[0-9]*[e]?[-]?[0-9]+' | sed -e 's/Rms:\ //'`
    90    #echo "eval: "$min" "$max" "$med" "$mean" "$rms
    9183}
    9284
     
    10597   else
    10698      printprocesslog "INFO processing files in "$auxdir
    107       #echo "INFO processing files in "$auxdir
    10899   fi
    109100
     
    179170      printprocesslog "INFO processing file number "$runnumber"_"`printf %03d $filenum`
    180171      echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum` >> $logfile 2>&1
    181       echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum`
     172      #echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum`
    182173 
    183174      # get information from rawfile
     
    200191         continue
    201192      fi
    202       echo $runtype
    203193      # assuming that at least TSTARTI and TSTOPI are consistent
    204       #echo $rawfile
    205       #echo $tstarti
    206       #echo $tstopi
    207       #echo $tstartf
    208       #echo $tstopf
    209194      if [ $tstarti -gt 30000 ]
    210195      then
     
    219204         tstop=`echo " $tstopi + $tstopf " | bc -l`
    220205      fi
    221       #echo $tstart
    222       #echo $tstop
     206      # code for very old data
    223207      #if [ $runnumber -eq 20111123 ]
    224208      #then
     
    317301            fi
    318302         fi
    319          echo $runstart $runstop
    320303         #numevents=`$factpath/fitsdump -h -t Events $rawfile  2>/dev/null | grep Events | grep -E -o '[0-9]+'`
    321304         numevents=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep Events | grep -E -o '[0-9]+'`
     
    420403         # RA
    421404         evaluatestatistics "Ra" $trackingstats
    422          #echo $min"_"$max"_"$
    423405         if [ "$evaluation" != "" ]
    424406         then
     
    623605      # add where condition
    624606      query=$query" WHERE fNight="$runnumber" AND fRunID="$filenum
    625       echo $query
    626607
    627608      # send query to DB
Note: See TracChangeset for help on using the changeset viewer.