Changeset 15521
- Timestamp:
- 05/07/13 23:28:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/QuickLook/Step2a.sh
r15400 r15521 23 23 then 24 24 printprocesslog "INFO no image files available for night "$datepath 25 continue25 finish 26 26 fi 27 27 # write data set file … … 34 34 do 35 35 night=`basename ${files[$i-1]} | cut -d_ -f1` 36 echo "night: "$night37 36 run=`basename ${files[$i-1]} | cut -d_ -f2` 38 echo "run: "$run37 printprocesslog "DEBUG night: "$night" run: "$run 39 38 dsfile=$dspath"/dataset"$night"_"$run".txt" 40 echo $dsfile39 #echo $dsfile 41 40 printprocesslog "INFO writing dataset file "$dsfile 42 41 # write dataset only if merpp-log is available to make sure that star-file is complete … … 47 46 echo `dirname ${files[$i-1]}`" "`basename ${files[$i-1]}` > $dsfile 48 47 else 49 echo "merpp still running - wait with file "${files[$i-1]}48 printprocesslog "INFO merpp still running - wait with file "${files[$i-1]} 50 49 continue 51 50 fi … … 54 53 if ! ls $logfile >/dev/null 2>&1 55 54 then 55 # fixme: why is this double? 56 56 night=`basename ${files[$i-1]} | cut -d_ -f1` 57 57 runid=`basename ${files[$i-1]} | cut -d_ -f2 | cut -d. -f1` 58 echo "night: "$night59 echo "runid: "$runid58 #echo "night: "$night 59 #echo "runid: "$runid 60 60 rawfilepath=$rawdata"/"$datepath"/" 61 61 rawfilename=`basename ${files[$i-1]} | sed -e 's/_I.root/.fits/'` 62 echo $rawfilepath63 echo $rawfilename62 #echo $rawfilepath 63 #echo $rawfilename 64 64 rawfile=`find $rawfilepath -name $rawfilename*` 65 ls$rawfile65 printprocesslog "INFO processing "$rawfile 66 66 drivefile=$auxdata"/"$datepath"/"`basename ${files[$i-1]} | cut -d_ -f1`".DRIVE_CONTROL_SOURCE_POSITION.fits" 67 ls$drivefile67 printprocesslog "INFO getting coordinates from "$drivefile 68 68 tstopi=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep TSTOPI | grep -E -o '[0-9]+'` 69 69 tstopf=`$factpath/fitsdump -h $rawfile 2>/dev/null | grep TSTOPF | grep -E -o '[.][0-9]+'` … … 76 76 then 77 77 printprocesslog "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile 78 echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile78 #echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile 79 79 continue 80 80 fi … … 82 82 then 83 83 printprocesslog "WARN coordinates "${coordinates[@]} 84 echo "WARN coordinates "${coordinates[@]}84 #echo "WARN coordinates "${coordinates[@]} 85 85 continue 86 86 fi 87 87 else 88 88 printprocesslog "DEBUG coordinates "${coordinates[@]} 89 echo "DEBUG coordinates "${coordinates[@]}89 #echo "DEBUG coordinates "${coordinates[@]} 90 90 query="SELECT fSourceKEY FROM RunInfo WHERE fNight="$night" AND fRunID="$runid 91 91 sourcekey=`sendquery` … … 93 93 then 94 94 printprocesslog "WARN sourcekey empty - coordinates"${coordinates[@]} 95 echo "WARN sourcekey empty - coordinates"${coordinates[@]}" for "$rawfile95 #echo "WARN sourcekey empty - coordinates"${coordinates[@]}" for "$rawfile 96 96 continue 97 97 fi … … 101 101 then 102 102 printprocesslog "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile 103 echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile103 #echo "WARN couldn't get coordinates ("${coordinates[@]}") from "$drivefile 104 104 continue 105 105 fi … … 107 107 then 108 108 printprocesslog "WARN coordinates "${coordinates[@]} 109 echo "WARN coordinates "${coordinates[@]}109 #echo "WARN coordinates "${coordinates[@]} 110 110 continue 111 111 fi 112 112 fi 113 113 114 echo$logfile" "${files[$i-1]}" -"${coordinates[0]}"-"${coordinates[1]}115 echo "`dirname $0`/RunGanymed.sh $dsfile "${coordinates[0]}" "${coordinates[1]}114 printprocesslog "DEBUG "$logfile" "${files[$i-1]}" -"${coordinates[0]}"-"${coordinates[1]} 115 printprocesslog "DEBUG `dirname $0`/RunGanymed.sh $dsfile "${coordinates[0]}" "${coordinates[1]} 116 116 `dirname $0`/RunGanymed.sh $dsfile ${coordinates[0]} ${coordinates[1]} 117 117 numganymeds=`echo " $numganymeds + 1 " | bc -l` 118 118 fi 119 119 done 120 echo "found "$numganymeds" ganymeds."120 printprocesslog "INFO found "$numganymeds" ganymeds." 121 121 122 122 # # get list of 5min-dataset-files as starting point
Note:
See TracChangeset
for help on using the changeset viewer.