Changeset 18092 for trunk/DataCheck


Ignore:
Timestamp:
01/11/15 18:37:04 (10 years ago)
Author:
Daniela Dorner
Message:
fixed bug: runs with timestamp as runnumber are ignored now
Location:
trunk/DataCheck
Files:
2 edited

Legend:

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

    r18083 r18092  
    7878   printprocesslog "INFO finding files to be checked in $rawdir..."
    7979   #fitsfiles=`ls $rawdir/*.fits 2>/dev/null | sort `
    80    fitsfiles=`find $rawdir -type f -regex '.*[.]fits[.]?[g]?[f]?[z]?' 2>/dev/null | sort `
     80   fitsfiles=( `find $rawdir -type f -regex '.*20[0-9][0-9][01][0-9][0-3][0-9][_][0-9][0-9][0-9][.]fits[.]?[g]?[f]?[z]?' 2>/dev/null | sort ` )
    8181
    8282   # loop to check files
  • trunk/DataCheck/QuickLook/Step1.sh

    r18068 r18092  
    9696
    9797printprocesslog "INFO get lists of raw files on newdaq and daq"
    98 files=( `find $rawpathnewdaq -type f -regex '.*[.]fits[.]?[g]?[f]?[z]?' 2>/dev/null | sort` )
     98files=( `find $rawpathnewdaq -type f -regex '.*20[0-9][0-9][01][0-9][0-3][0-9][_][0-9][0-9][0-9][.]fits[.]?[g]?[f]?[z]?' 2>/dev/null | sort` )
    9999# to treat links use:
    100 #files=( `find -L $rawpathnewdaq -regex '.*[.]fits[.]?[g]?[f]?[z]?' 2>/dev/null | sort` )
     100#files=( `find -L $rawpathnewdaq -regex '.*20[0-9][0-9][01][0-9][0-3][0-9][_][0-9][0-9][0-9][.]fits[.]?[g]?[f]?[z]?' 2>/dev/null | sort` )
    101101
    102102if [ ${#files[@]} -eq 0 ]
     
    105105   finish
    106106fi
    107 fileslocal=( `find -L $rawpath -type f -regex '.*[.]fits[.]?[g]?[f]?[z]?' 2>/dev/null| sort` )
     107fileslocal=( `find -L $rawpath -type f -regex '.*20[0-9][0-9][01][0-9][0-3][0-9][_][0-9][0-9][0-9][.]fits[.]?[g]?[f]?[z]?' 2>/dev/null| sort` )
    108108callistofiles=( `find $calpath -type f -name $date*-calibration.log 2>/dev/null| sort` )
    109109# get number of dataruns from DB
     
    147147
    148148      source `dirname $0`/../Sourcefile.sh
     149
    149150      # check if file is already transferred
    150151      if ! ls $localfile >/dev/null 2>&1
     
    359360   # get new file lists
    360361   printprocesslog "INFO get new file lists for "$datepath
    361    files=( `find $rawpathnewdaq -type f -regex '.*[.]fits[.]?[g]?[f]?[z]?' | sort` )
    362    fileslocal=( `find -L $rawpath -type f -regex '.*[.]fits[.]?[g]?[f]?[z]?' | sort` )
     362   files=( `find $rawpathnewdaq -type f -regex '.*20[0-9][0-9][01][0-9][0-3][0-9][_][0-9][0-9][0-9][.]fits[.]?[g]?[f]?[z]?' | sort` )
     363   fileslocal=( `find -L $rawpath -type f -regex '.*20[0-9][0-9][01][0-9][0-3][0-9][_][0-9][0-9][0-9][.]fits[.]?[g]?[f]?[z]?' | sort` )
    363364   callistofiles=( `find $calpath -type f -name $date*-calibration.log | sort` )
    364365   #echo "INFO #files-daq:"${#fileslocal[@]}" #files-newdaq:"${#files[@]}" #callisto-logs:"${#callistofiles[@]}" #runs:"$numcalibrated
     
    372373      sleep 60
    373374      printprocesslog "INFO get new file lists for "$datepath
    374       files=( `find $rawpathnewdaq -type f -regex '.*[.]fits[.]?[g]?[f]?[z]?' | sort` )
    375       fileslocal=( `find -L $rawpath -type f -regex '.*[.]fits[.]?[g]?[f]?[z]?' | sort` )
     375      files=( `find $rawpathnewdaq -type f -regex '.*20[0-9][0-9][01][0-9][0-3][0-9][_][0-9][0-9][0-9][.]fits[.]?[g]?[f]?[z]?' | sort` )
     376      fileslocal=( `find -L $rawpath -type f -regex '.*20[0-9][0-9][01][0-9][0-3][0-9][_][0-9][0-9][0-9][.]fits[.]?[g]?[f]?[z]?' | sort` )
    376377      callistofiles=( `find $calpath -type f -name $date*-calibration.log | sort` )
    377378   fi
Note: See TracChangeset for help on using the changeset viewer.