Changeset 10692 for trunk/ippTasks/detrend.stack.pro
- Timestamp:
- Dec 12, 2006, 11:58:21 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.stack.pro (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.stack.pro
r9506 r10692 9 9 # detrend_stack.pl 1 0 mc bias 10 10 11 ## these tasks use the queue DetrendClassIDtoStack 12 13 ## these tasks use the queue DetrendImfilesToProcess 14 ## the DetrendClassIDtoStack queue contains: 11 ## these tasks use the queue DetrendStackClass 12 ## the DetrendStackClass queue contains: 15 13 ## STATE DET_ID ITER TYPE CLASS_ID CAMERA 16 14 … … 23 21 end 24 22 23 $DetrendStackClassFail = 0 24 25 if ($?VERBOSE == 0) 26 echo "VERBOSE not defined: load pantasks.pro first" 27 break 28 end 29 if ($?LOGDIR == 0) 30 echo "LOGDIR not defined: load pantasks.pro first" 31 break 32 end 33 $LOGSUBDIR = $LOGDIR/detrend 34 exec mkdir -p $LOGSUBDIR 35 36 macro detstack.status 37 queueprint DetrendStackClass 38 echo "DetrendStackClassFail: $DetrendStackClassFail" 39 end 40 25 41 # select images ready for copy 26 42 # new entries are added to queue DetrendStackClass 27 43 # compare the new list with the ones already selected 28 44 task dettool.stack.load 29 command dettool -tostacked -simple30 45 host local 31 46 … … 34 49 periods -timeout 30 35 50 36 stdout dettool.stack.log 37 stderr dettool.stack.log 51 stdout $LOGSUBDIR/detstack.log 52 stderr $LOGSUBDIR/detstack.log 53 54 task.exec 55 command dettool -tostacked -simple -limit {$DetrendStackClassFail + 20} 56 end 38 57 39 58 # success … … 46 65 for i 0 $Nqueue 47 66 queuepop stdout -var line 67 if ($VERBOSE > 2) 68 echo $line 69 end 48 70 list word -split $line 49 71 $DET_ID = $word:0 … … 61 83 # locked list 62 84 task.exit default 63 echo "detrend.stack: failure" 85 if ($VERBOSE) 86 echo "detrend.stack: failure" 87 end 64 88 end 65 89 66 90 # operation times out? 67 91 task.exit timeout 68 echo "detrend.stack: timeout" 92 if ($VERBOSE) 93 echo "detrend.stack: timeout" 94 end 69 95 end 70 96 end … … 78 104 task.exec 79 105 queuesize DetrendStackClass -var N 80 81 106 if ($N == 0) break 82 107 if ($network == 0) break … … 103 128 104 129 # XXX add $WORKDIR/$LOG_DIR 105 stdout $ CAMERA.$DET_TYPE.$DET_ID.$ITER.$CLASS_ID.log106 stderr $ CAMERA.$DET_TYPE.$DET_ID.$ITER.$CLASS_ID.log130 stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.$CLASS_ID.log 131 stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITER.$CLASS_ID.log 107 132 108 133 # specify choice of remote host: … … 115 140 # create example job options as a demonstration 116 141 options "$line" 117 # detrend_stack.pl --det_id 1 --iteration 0 --class_id isp --det_type bias --camera ISP || exit 1 118 echo command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA 142 if ($VERBOSE > 1) 143 echo command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA 144 end 119 145 command detrend_stack.pl --det_id $DET_ID --iteration $ITER --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA 120 146 end … … 127 153 # default exit status 128 154 task.exit default 129 queuepush DetrendStackClass -replace -key 1:2:4 "FAIL $options:0" 155 if ($VERBOSE) 156 echo "failure detrend_stack.pl $options:0" 157 end 158 queuepush DetrendStackClass -replace -key 1:2:4 "FAIL $options:0" 159 $DetrendStackClassFail ++ 130 160 end 131 161 132 162 # operation times out? 133 163 task.exit timeout 164 if ($VERBOSE) 165 echo "failure detrend_stack.pl $options:0" 166 end 134 167 queuepush DetrendStackClass -replace -key 1:2:4 "TIMEOUT $options:0" 168 $DetrendStackClassFail ++ 135 169 end 136 170 end
Note:
See TracChangeset
for help on using the changeset viewer.
