Changeset 11323 for trunk/ippTasks/detrend.resid.pro
- Timestamp:
- Jan 26, 2007, 1:39:42 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.resid.pro (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.resid.pro
r11210 r11323 27 27 book listbook detPendingResidExp 28 28 end 29 30 # these variables will cycle through the known database names 31 $detPendingResidImfile_DB = 0 32 $detPendingResidExp_DB = 0 29 33 30 34 # select images ready for copy … … 42 46 43 47 task.exec 44 command dettool -toresidimfile -limit 20 48 if ($DB:n == 0) 49 option DEFAULT 50 command dettool -toresidimfile -limit 20 51 else 52 # save the DB name for the exit tasks 53 option $DB:$detPendingResidImfile_DB 54 command dettool -toresidimfile -limit 20 -dbname $DB:$detPendingResidImfile_DB 55 $detPendingResidImfile_DB ++ 56 if ($detPendingResidImfile_DB >= $DB:n) set detPendingResidImfile_DB = 0 57 end 45 58 end 46 59 … … 48 61 task.exit 0 49 62 # convert 'stdout' to book format 50 ipptool2book stdout detPendingResidImfile -key det_id:iteration:exp_tag:class_id -uniq 63 ipptool2book stdout detPendingResidImfile -key det_id:iteration:exp_tag:class_id -uniq -setword dbname $options:0 51 64 if ($VERBOSE > 2) 52 65 book listbook detPendingResidImfile … … 55 68 # delete existing entries which are DONE 56 69 book delpage detPendingResidImfile -key state DONE 70 book delpage detPendingResidImfile -key state DATA_ERR 57 71 end 58 72 … … 93 107 book getword detPendingResidImfile $pageName det_uri -var DET_URI 94 108 book getword detPendingResidImfile $pageName camera -var CAMERA 109 book getword detPendingResidImfile $pageName workdir -var WORKDIR 110 book getword detPendingResidImfile $pageName dbname -var DBNAME 111 set_standard_args 95 112 96 113 # specify choice of remote host: … … 114 131 # create command 115 132 if ($VERBOSE > 1) 116 echo command detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE 117 end 118 command detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE 133 echo command detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE $ARGS 134 end 135 command detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE $ARGS 119 136 end 120 137 … … 145 162 146 163 task.exec 147 command dettool -toresidexp -limit 20 164 if ($DB:n == 0) 165 option DEFAULT 166 command dettool -toresidexp -limit 20 167 else 168 # save the DB name for the exit tasks 169 option $DB:$detPendingResidExp_DB 170 command dettool -toresidexp -limit 20 -dbname $DB:$detPendingResidExp_DB 171 $detPendingResidExp_DB ++ 172 if ($detPendingResidExp_DB >= $DB:n) set detPendingResidExp_DB = 0 173 end 148 174 end 149 175 … … 151 177 task.exit 0 152 178 # convert 'stdout' to book format 153 ipptool2book stdout detPendingResidExp -key det_id:iteration:exp_tag -uniq 179 ipptool2book stdout detPendingResidExp -key det_id:iteration:exp_tag -uniq -setword dbname $options:0 154 180 if ($VERBOSE > 2) 155 181 book listbook detPendingResidExp … … 158 184 # delete existing entries which are DONE 159 185 book delpage detPendingResidExp -key state DONE 186 book delpage detPendingResidExp -key state DATA_ERR 160 187 end 161 188 … … 194 221 book getword detPendingResidExp $pageName include -var INCLUDE 195 222 book getword detPendingResidExp $pageName camera -var CAMERA 223 book getword detPendingResidExp $pageName workdir -var WORKDIR 224 book getword detPendingResidExp $pageName dbname -var DBNAME 225 set_standard_args 196 226 197 227 # specify choice of remote host: … … 215 245 # create example job options as a demonstration 216 246 if ($VERBOSE > 1) 217 echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA 218 end 219 command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA 247 echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA $ARGS 248 end 249 command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA $ARGS 220 250 end 221 251
Note:
See TracChangeset
for help on using the changeset viewer.
