Changeset 18770
- Timestamp:
- 02/20/17 13:58:17 (8 years ago)
- Location:
- trunk/DataCheck
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Processing/FillAuxData.sh
r18708 r18770 133 133 # get daily fits files 134 134 trackingfile=$auxdir/$runnumber.DRIVE_CONTROL_TRACKING_POSITION.fits 135 if ! [ -e $trackingfile ] 136 then 137 printprocesslog "WARN "$trackingfile" not found." 138 fi 135 check_file_avail $trackingfile 139 136 140 137 sourceposfile=$auxdir/$runnumber.DRIVE_CONTROL_SOURCE_POSITION.fits 141 if ! [ -e $sourceposfile ]138 if check_file_avail $sourceposfile 142 139 then 143 printprocesslog "WARN "$sourceposfile" not found."144 else145 140 sourceposfiletstarti=`$factpath/fitsdump -h $sourceposfile 2>/dev/null | grep 'TSTARTI' | grep -E -o '[0-9]{5}'` 146 141 sourceposfiletstartf=`$factpath/fitsdump -h $sourceposfile 2>/dev/null | grep 'TSTARTF' | grep -E -o '0[.][0-9]+'` … … 154 149 155 150 triggerratefile=$auxdir/$runnumber.FTM_CONTROL_TRIGGER_RATES.fits 156 if ! [ -e $triggerratefile ] 157 then 158 printprocesslog "WARN "$triggerratefile" not found." 159 fi 151 check_file_avail $triggerratefile 160 152 161 153 thresholdfile=$auxdir/$runnumber.FTM_CONTROL_STATIC_DATA.fits 162 if ! [ -e $thresholdfile ] 163 then 164 printprocesslog "WARN "$thresholdfile" not found." 165 fi 154 check_file_avail $thresholdfile 166 155 167 156 biasvoltagefile=$auxdir/$runnumber.BIAS_CONTROL_VOLTAGE.fits 168 if ! [ -e $biasvoltagefile ] 169 then 170 printprocesslog "WARN "$biasvoltagefile" not found." 171 fi 157 check_file_avail $biasvoltagefile 172 158 173 159 # fill auxiliary information for files … … 180 166 # get information from rawfile 181 167 rawfile=`ls $rawdir/$runnumber"_"\`printf %03d $filenum\`.fits* 2>/dev/null` 182 if ! [ -e $rawfile ] 183 then 184 if [ $night -lt $checknight ] 185 then 186 printprocesslog "WARN "$rawfile" not found." 187 else 188 printprocesslog "INFO "$rawfile" not found." 189 fi 168 if ! check_file_avail $rawfile 169 then 190 170 continue 191 171 fi -
trunk/DataCheck/QuickLook/Step1.sh
r18705 r18770 63 63 function rsync_aux_file() 64 64 { 65 if ls $1 >/dev/null 2>&165 if check_file_avail $1 66 66 then 67 67 printprocesslog "INFO rsync "$1 … … 77 77 printprocesslog "WARN rsync of "$1" failed." 78 78 fi 79 else80 printprocesslog "WARN "$1" missing."81 79 fi 82 80 }
Note:
See TracChangeset
for help on using the changeset viewer.