Changeset 12644 for trunk/DataCheck


Ignore:
Timestamp:
11/25/11 06:07:06 (13 years ago)
Author:
Daniela Dorner
Message:
added roitm; added new option
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/CheckRawData.sh

    r12632 r12644  
    1010doupdate="yes" # update all entries
    1111#doupdate="no" # fill only entries which are not yet existing
     12
     13fillonly="ifzipped" # fill only entries which are not yet existing + where zipped file is availabl
    1214
    1315echo ""  >> $logfile 2>&1
     
    2931
    3032# get last 3 nights
    31 dates=( `date +%Y/%m/%d` `date +%Y/%m/%d --date="-1day"` `date +%Y/%m/%d --date="-2day"` `date +%Y/%m/%d --date="-3day"` )
    32 dates=( `date +%Y/%m/%d --date="-6day"` )
    33 dates=( "2011/11/23" )
     33dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` )
    3434
    3535# do rsync for rawfiles of these dates
     
    150150         fi
    151151      fi
     152      if [ "$result3" == "" ] && [ "$md5sum" == "" ] && [ "$fillonly" == "ifzipped" ]
     153      then
     154         echo $file" is still missing zip => do not insert yet => continue " >> $logfile 2>&1
     155         continue
     156      fi
    152157
    153158      runtype=
     
    181186         runtype=`/home/fact/FACT++/fitsdump -h -t Events $file  2>/dev/null | grep RUNTYPE | grep -E -o "['][a-z-]+[']" | sed -e "s/'//g"`
    182187         roi=`/home/fact/FACT++/fitsdump -h -t Events $file  2>/dev/null | grep NROI | grep -v NROITM | grep -E -o '[0-9]{1,4}'`
     188         roitm=`/home/fact/FACT++/fitsdump -h -t Events $file  2>/dev/null | grep NROITM | grep -E -o '[0-9]{1,4}'`
    183189         numevents=`/home/fact/FACT++/fitsdump -h -t Events $file  2>/dev/null | grep Events | grep -E -o '[0-9]+'`
    184190         numphys=`/home/fact/FACT++/fitsdump -h -t Events $file  2>/dev/null | grep 'NTRG ' | grep -E -o '[0-9]+'`
     
    273279      if [ $numfitserrors -eq 0 ]
    274280      then
    275          query4=$query4", fNumEvents="$numevents", fROI="$roi
     281         query4=$query4", fNumEvents="$numevents", fROI="$roi", fROITimeMarker="$roitm
    276282         query4=$query4", fRunStart='"$runstart"', fRunStop='"$runstop"'"
    277283         if [ "$numphys" != "" ]
     
    330336      echo "  number error: "$numbererror >> $logfile 2>&1
    331337      echo "  roi: "$roi >> $logfile 2>&1
     338      echo "  roitm: "$roitm >> $logfile 2>&1
    332339      echo "  runtype: "$runtype >> $logfile 2>&1
    333340      echo "  numevents: "$numevents >> $logfile 2>&1
Note: See TracChangeset for help on using the changeset viewer.