Changeset 9081 for trunk/ippTasks/detrend.reject.pro
- Timestamp:
- Sep 30, 2006, 12:27:01 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.reject.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.reject.pro
r8691 r9081 13 13 ## STATE DET_ID ITER TYPE 14 14 15 queueinit DetrendRejectExp 16 if ($?network == 0) 17 $network = 1 18 end 19 if ($?parallel == 0) 20 $parallel = 0 21 end 22 15 23 # select images ready for copy 16 24 # new entries are added to queue DetrendRejectExp 17 25 # compare the new list with the ones already selected 18 task dettool. assess.load26 task dettool.reject.load 19 27 command dettool -residdetrun -simple 20 28 host local … … 22 30 periods -poll 1 23 31 periods -exec 5 24 periods -timeout 30 32 periods -timeout 5 33 34 stdout dettool.reject.log 35 stderr dettool.reject.log 25 36 26 37 # success … … 36 47 $DET_ID = $word:0 37 48 $ITER = $word:1 38 $ TYPE= $word:239 queuepush DetrendRejectExp -uniq -key 1:2 "NEW $DET_ID $ITER $ TYPE"49 $DET_TYPE = $word:2 50 queuepush DetrendRejectExp -uniq -key 1:2 "NEW $DET_ID $ITER $DET_TYPE" 40 51 end 41 52 … … 61 72 62 73 # copy new images, sending job to desired host 63 task dettool.re sid.process74 task dettool.reject.process 64 75 periods -poll 0.5 65 76 periods -exec 1.0 66 periods -timeout 577 periods -timeout 30 67 78 68 79 task.exec … … 84 95 ## NOTE: the queue has the STATE prepended 85 96 list word -split $line 86 $DET_ID = $word:1 87 $ITER = $word:2 88 $TYPE = $word:3 97 $DET_ID = $word:0 98 $ITER = $word:1 99 $DET_TYPE = $word:2 100 101 # I'd like to add CAMERA to the log file... 102 stdout isp.$DET_TYPE.$DET_ID.$ITER.log 103 stderr isp.$DET_TYPE.$DET_ID.$ITER.log 89 104 90 105 # specify choice of remote host: 91 host anyhost 106 if ($parallel) 107 host anyhost 108 else 109 host local 110 end 92 111 93 112 # create example job options as a demonstration 94 113 options "$line" 95 # detrend_reject_exp.pl 1 0 bias 96 # detrend_reject_exp.pl DET_ID ITER TYPE 97 command detrend_reject_imfile.pl $DET_ID $ITER $TYPE 98 end 114 echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE 115 command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITER --det_type $DET_TYPE 116 end 99 117 100 118 # success … … 110 128 # operation times out? 111 129 task.exit timeout 112 queuepush DetrendRejectExp -replace -key 1:2 " FAIL$options:0"130 queuepush DetrendRejectExp -replace -key 1:2 "TIMEOUT $options:0" 113 131 end 114 132 end
Note:
See TracChangeset
for help on using the changeset viewer.
