Changeset 9338 for trunk/ippTasks/detrend.process.pro
- Timestamp:
- Oct 5, 2006, 5:20:43 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.process.pro (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.process.pro
r9104 r9338 11 11 ## these tasks use the queue DetrendProcessImfiles 12 12 ## the DetrendProcessImfiles queue contains: 13 ## STATE DET_ID TYPE EXP_ KEYCLASS CLASS_ID URI13 ## STATE DET_ID TYPE EXP_TAG CLASS CLASS_ID URI 14 14 15 15 queueinit DetrendProcessImfiles … … 26 26 # compare the new list with the ones already selected 27 27 task dettool.process.load 28 command dettool - raw-simple28 command dettool -toprocess -simple 29 29 host local 30 30 … … 49 49 list word -split $line 50 50 $DET_ID = $word:0 51 $ TYPE= $word:152 $EXP_ KEY= $word:251 $DET_TYPE = $word:1 52 $EXP_TAG = $word:2 53 53 $CLASS = $word:3 54 54 $CLASS_ID = $word:4 55 55 $URI = $word:5 56 queuepush DetrendProcessImfiles -uniq -key 1:3:5 "NEW $DET_ID $ TYPE $EXP_KEY$CLASS $CLASS_ID $URI"56 queuepush DetrendProcessImfiles -uniq -key 1:3:5 "NEW $DET_ID $DET_TYPE $EXP_TAG $CLASS $CLASS_ID $URI" 57 57 end 58 58 … … 93 93 94 94 ## the DetrendProcessImfiles queue contains: 95 # STATE DET_ID TYPE EXP_ KEYCLASS CLASS_ID URI95 # STATE DET_ID TYPE EXP_TAG CLASS CLASS_ID URI 96 96 ## NOTE: the queue has the STATE prepended 97 97 list word -split $line 98 98 $DET_ID = $word:0 99 $ TYPE= $word:1100 $EXP_ KEY= $word:299 $DET_TYPE = $word:1 100 $EXP_TAG = $word:2 101 101 $CLASS = $word:3 102 102 $CLASS_ID = $word:4 103 103 $URI = $word:5 104 104 105 stdout $EXP_KEY.detproc.$CLASS_ID.log 106 stderr $EXP_KEY.detproc.$CLASS_ID.log 105 $LOG_DIR = `dirname $URI` 106 stdout $WORKDIR/$LOG_DIR/$EXP_TAG.detproc.$DET_ID.$CLASS_ID.log 107 stderr $WORKDIR/$LOG_DIR/$EXP_TAG.detproc.$DET_ID.$CLASS_ID.log 107 108 108 109 # specify choice of remote host: … … 115 116 # create example job options as a demonstration 116 117 options "$line" 117 echo command detrend_process_imfile.pl --det_id $DET_ID --exp_ id $EXP_KEY --class $CLASS --class_id $CLASS_ID --det_type bias--input_uri $URI118 command detrend_process_imfile.pl --det_id $DET_ID --exp_ id $EXP_KEY --class $CLASS --class_id $CLASS_ID --det_type bias--input_uri $URI118 echo command detrend_process_imfile.pl --det_id $DET_ID --exp_tag $EXP_TAG --class $CLASS --class_id $CLASS_ID --det_type $DET_TYPE --input_uri $URI 119 command detrend_process_imfile.pl --det_id $DET_ID --exp_tag $EXP_TAG --class $CLASS --class_id $CLASS_ID --det_type $DET_TYPE --input_uri $URI 119 120 end 120 121 121 122 # success 122 123 task.exit 0 124 echo "success detrend_process_imfile.pl $options:0" 123 125 queuepush DetrendProcessImfiles -replace -key 1:3:5 "DONE $options:0" 124 126 end … … 126 128 # default exit status 127 129 task.exit default 130 echo "failure detrend_process_imfile.pl $options:0" 128 131 queuepush DetrendProcessImfiles -replace -key 1:3:5 "FAIL $options:0" 129 132 end … … 131 134 # operation times out? 132 135 task.exit timeout 136 echo "timeout detrend_process_imfile.pl $options:0" 133 137 queuepush DetrendProcessImfiles -replace -key 1:3:5 "TIMEOUT $options:0" 134 138 end … … 139 143 # compare the new list with the ones already selected 140 144 task dettool.processexp.load 141 command dettool -toprocess dexp -simple145 command dettool -toprocessedexp -simple 142 146 host local 143 147 … … 162 166 list word -split $line 163 167 $DET_ID = $word:0 164 $TYPE = $word:1 165 $EXP_KEY = $word:2 166 queuepush DetrendProcessExposures -uniq -key 1:3 "NEW $DET_ID $TYPE $EXP_KEY" 168 $ITER = $word:1 169 $DET_TYPE = $word:2 170 $EXP_TAG = $word:3 171 queuepush DetrendProcessExposures -uniq -key 1:2:4 "NEW $DET_ID $ITER $DET_TYPE $EXP_TAG" 167 172 end 168 173 … … 200 205 201 206 strpop line state 202 queuepush DetrendProcessExposures -replace -key 1:3:5 "RUN $line" 203 204 ## the DetrendProcessExposures queue contains: 205 # STATE DET_ID TYPE EXP_KEY CLASS CLASS_ID URI 206 ## NOTE: the queue has the STATE prepended 207 queuepush DetrendProcessExposures -replace -key 1:2:4 "RUN $line" 208 209 207 210 list word -split $line 208 211 $DET_ID = $word:0 209 $TYPE = $word:1 210 $EXP_KEY = $word:2 211 212 stdout $EXP_KEY.detproc.$CLASS_ID.log 213 stderr $EXP_KEY.detproc.$CLASS_ID.log 212 $ITER = $word:1 213 $DET_TYPE = $word:2 214 $EXP_TAG = $word:3 215 216 # XXX need the classID in dettool -toprocessedexp -simple output 217 $CLASS_ID = isp 218 stdout $EXP_TAG.detproc.$DET_ID.log 219 stderr $EXP_TAG.detproc.$DET_ID.log 214 220 215 221 # specify choice of remote host: … … 222 228 # create example job options as a demonstration 223 229 options "$line" 224 echo command detrend_process_exp.pl --det_id $DET_ID --exp_ id $EXP_KEY --det_type bias225 command detrend_process_exp.pl --det_id $DET_ID --exp_ id $EXP_KEY --det_type bias230 echo command detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG 231 command detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG 226 232 end 227 233 228 234 # success 229 235 task.exit 0 230 queuepush DetrendProcessExposures -replace -key 1: 3:5"DONE $options:0"236 queuepush DetrendProcessExposures -replace -key 1:2:4 "DONE $options:0" 231 237 end 232 238 233 239 # default exit status 234 240 task.exit default 235 queuepush DetrendProcessExposures -replace -key 1: 3:5"FAIL $options:0"236 end 237 238 # operation times out? 239 task.exit timeout 240 queuepush DetrendProcessExposures -replace -key 1: 3:5"TIMEOUT $options:0"241 end 242 end 241 queuepush DetrendProcessExposures -replace -key 1:2:4 "FAIL $options:0" 242 end 243 244 # operation times out? 245 task.exit timeout 246 queuepush DetrendProcessExposures -replace -key 1:2:4 "TIMEOUT $options:0" 247 end 248 end
Note:
See TracChangeset
for help on using the changeset viewer.
