Ignore:
Timestamp:
07/19/19 18:53:55 (5 years ago)
Author:
Daniela Dorner
Message:
allow for # in source names
File:
1 edited

Legend:

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

    r19522 r19563  
    7575   if [ "$evaluation" = "" ]
    7676   then
    77       if [ $runtypekey -eq 1 ] || [ $runtypekey -eq 18 ] #|| [ $sourcekey -gt 0 ] #doesn't work as sourcekey can be empty
    78       then
    79          printprocesslog "WARN empty evaluation of statistic ("$@") for run "$date" file "$rawfile
    80       else
    81          printprocesslog "DEBUG empty evaluation of statistic ("$@") for run "$date" file "$rawfile
    82       fi
     77      printprocesslog "DEBUG empty evaluation of statistic ("$@") for run "$date" file "$rawfile
     78#      if [ $runtypekey -eq 1 ] || [ $runtypekey -eq 18 ] #|| [ $sourcekey -gt 0 ] #doesn't work as sourcekey can be empty
     79#      then
     80#         printprocesslog "WARN empty evaluation of statistic ("$@") for run "$date" file "$rawfile
     81#      else
     82#         printprocesslog "DEBUG empty evaluation of statistic ("$@") for run "$date" file "$rawfile
     83#      fi
    8384   fi
    8485   min=`echo $evaluation | grep -E -o 'Min:\ [-]?[0-9]+[.]?[0-9]*' | sed -e 's/Min:\ //'`
     
    121122   if [ "$doupdate" = "no" ]
    122123   then
    123       query=$query" AND ISNULL(fRightAscension) "
     124      query=$query" AND (ISNULL(fRightAscension) OR (ISNULL(fSourceKey) AND fRunTypeKey=1)) "
    124125   fi
    125126   printprocesslog "DEBUG get filenumbers from DB: QUERY: "$query
     
    162163      printprocesslog "INFO processing file number "$runnumber"_"`printf %03d $filenum`
    163164      echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum` >> $logfile 2>&1
    164       #echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum`
    165  
     165      if [ "$certaindate" != "" ]
     166      then
     167         echo  `date`": processing file number "$runnumber"_"`printf %03d $filenum`
     168      fi
     169     
    166170      # get information from rawfile
    167171      rawfile=`ls $rawdir/$runnumber"_"\`printf %03d $filenum\`.fits* 2>/dev/null`
     
    224228      if [ -e $sourceposfile ]
    225229      then
    226          sourcename=`$factpath/fitsdump ${sourceposfile} -c Time -c Name --filter='[1]<'${tstop}' && [1]>'${sourceposfiletstart}  2>/dev/null | tail -1 2>&1 | grep -o -E "['][a-zA-Z0-9\ \.\+\-]+[']" | sed -e "s/'//g"`
     230         sourcename=`$factpath/fitsdump ${sourceposfile} -c Time -c Name --filter='[1]<'${tstop}' && [1]>'${sourceposfiletstart}  2>/dev/null | tail -1 2>&1 | grep -o -E "['][a-zA-Z0-9\#\_\ \.\+\-]+[']" | sed -e "s/'//g"`
     231         printprocesslog "DEBUG $factpath/fitsdump ${sourceposfile} -c Time -c Name --filter='[1]<'${tstop}' && [1]>'${sourceposfiletstart}  2>/dev/null | tail -1 2>&1 | grep -o -E \"['][a-zA-Z0-9\#\_\ \.\+\-]+[']\" | sed -e \"s/'//g\" "
    227232         if [ "$sourcename" == "" ]
    228233         then
Note: See TracChangeset for help on using the changeset viewer.