Changeset 18471 for trunk/DataCheck
- Timestamp:
- 04/22/16 21:19:06 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxData.sh
r18326 r18471 183 183 #mjdrefraw=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep 'MJDREF' | grep -E -o '[0-9]{5}'` 184 184 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\\^/'` 186 186 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\\^/'` 188 188 if [ "$tstarti" == "" ] || [ "$tstopi" == "" ] || [ "$tstartf" == "" ] || [ "$tstopf" == "" ] 189 189 then 190 190 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 " 191 192 continue 192 193 fi 194 echo $rawfile" "$tstarti" "$tstartf" "$tstopi" "$tstopf 193 195 # assuming that at least TSTARTI and TSTOPI are consistent 194 196 if [ $tstarti -gt 30000 ] … … 204 206 tstop=`echo " $tstopi + $tstopf " | bc -l` 205 207 fi 208 echo $rawfile" "$tstart" "$tstop 206 209 # code for very old data 207 210 #if [ $runnumber -eq 20111123 ]
Note:
See TracChangeset
for help on using the changeset viewer.