Changeset 18471


Ignore:
Timestamp:
04/22/16 21:19:06 (8 years ago)
Author:
Daniela Dorner
Message:
fixed bug for very small TSTOPF
File:
1 edited

Legend:

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

    r18326 r18471  
    183183      #mjdrefraw=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'`
    184184      tstarti=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'`
    185       tstartf=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep 'TSTARTF' | grep -E -o '0[.][0-9]+'`
     185      tstartf=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep 'TSTARTF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'`
    186186      tstopi=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep 'TSTOPI' | grep -E -o '[0-9]{5}'`
    187       tstopf=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep 'TSTOPF' | grep -E -o '0[.][0-9]+'`
     187      tstopf=`$factpath/fitsdump -h $rawfile  2>/dev/null | grep 'TSTOPF' | grep -E -o '[0-9][.][0-9]+([E][\-][0-9][0-9])?' | sed -e 's/[E]+*/\\*10\\^/'`
    188188      if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ]
    189189      then
    190190         printprocesslog "WARN: "$rawfile": one of the following keywords is empty or 0: TSTARTI TSTARTF TSTOPI TSTOPF "
     191         echo "WARN: "$rawfile": one of the following keywords is empty or 0: TSTARTI TSTARTF TSTOPI TSTOPF "
    191192         continue
    192193      fi
     194      echo $rawfile" "$tstarti" "$tstartf" "$tstopi" "$tstopf
    193195      # assuming that at least TSTARTI and TSTOPI are consistent
    194196      if [ $tstarti -gt 30000 ]
     
    204206         tstop=`echo " $tstopi + $tstopf " | bc -l`
    205207      fi
     208      echo $rawfile" "$tstart" "$tstop
    206209      # code for very old data
    207210      #if [ $runnumber -eq 20111123 ]
Note: See TracChangeset for help on using the changeset viewer.