Changeset 18098
- Timestamp:
- 02/01/15 14:02:57 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/QuickLook/RunGanymed.sh
r18067 r18098 17 17 fi 18 18 19 # getting coordinates from raw and drive 20 date=`echo $starfile | grep -o -E '20[0-9][0-9]/[0-3][0-9]/[0- 2][0-9]'`19 # getting coordinates from raw and drive or DB 20 date=`echo $starfile | grep -o -E '20[0-9][0-9]/[0-3][0-9]/[0-3][0-9]'` 21 21 drivefile=$auxdata"/"$date"/"`basename $starfile | cut -d_ -f1`".DRIVE_CONTROL_SOURCE_POSITION.fits" 22 22 rawfile=$rawdata"/"$date"/"`basename $starfile | sed -e 's/_I.root/.fits.fz/'` … … 27 27 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep TSTOPF | grep -E -o '[.][0-9]+'` 28 28 tstop=${tstopi}${tstopf} 29 else 30 printprocesslog "WARN "$rawfile" not found." 31 fi 32 if [ "$tstop" == "" ] 33 then 34 printprocesslog "WARN tstop empty "$rawfile 35 fi 36 if ! ls $drivefile >/dev/null 2>&1 37 then 38 printprocesslog "WARN "$drivefile" missing." 29 39 fi 30 40 if ls $drivefile >/dev/null 2>&1 && ! [ "$tstop" == "" ] … … 45 55 fi 46 56 else 57 night=`echo $date | sed -e 's/\///g'` 58 runid=`basename $starfile | cut -d_ -f2` 47 59 printprocesslog "INFO getting coordinates from DB." 48 60 query="SELECT fSourceKEY FROM RunInfo WHERE fNight="$night" AND fRunID="$runid … … 50 62 if [ "$sourcekey" == "" ] 51 63 then 52 printprocesslog "WARN sourcekey empty - coordinates"${coordinates[@]} 53 #echo "WARN sourcekey empty - coordinates"${coordinates[@]}" for "$rawfile 64 printprocesslog "WARN sourcekey empty for "$night"_"$runid" - coordinates"${coordinates[@]} 54 65 finish 55 66 fi … … 58 69 if [ "${coordinates[0]}" == "" ] || [ "${coordinates[1]}" == "" ] 59 70 then 60 printprocesslog "WARN couldn't get coordinates ("${coordinates[@]}") from DB." 61 #echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile 71 printprocesslog "WARN couldn't get coordinates ("${coordinates[@]}") for "$night"_"$runid" from DB." 62 72 finish 63 73 fi 64 74 if [ "${coordinates[0]}" == "0" ] || [ "${coordinates[1]}" == "0" ] 65 75 then 66 printprocesslog "WARN coordinates "${coordinates[@]} 67 #echo "WARN coordinates "${coordinates[@]} 76 printprocesslog "WARN coordinates "${coordinates[@]}" for "$night"_"$runid 68 77 finish 69 78 fi … … 76 85 makedir $outpath 77 86 78 output=$outpath/`basename $starfile | cut -d I -f1`87 output=$outpath/`basename $starfile | cut -d_ -f1-2` 79 88 logfile=$output"-ganymed.log" 80 89 ganymedfile=$output"-analysis.root"
Note:
See TracChangeset
for help on using the changeset viewer.