Changeset 8691 for trunk/ippTasks/detrend.stack.pro
- Timestamp:
- Aug 29, 2006, 2:28:33 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.stack.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.stack.pro
r8193 r8691 1 2 1 ## this file contains the tasks for running the detrend stacking stage 3 2 3 # get a list of imfiles to stack 4 # dettool -tostack -simple 5 # 1 0 bias mc 6 # DET_ID ITER TYPE CLASS_ID 7 8 # function to stack the imfiles: 9 # detrend_stack.pl 1 0 mc bias 10 4 11 ## these tasks use the queue DetrendClassIDtoStack 12 13 ## these tasks use the queue DetrendImfilesToProcess 14 ## the DetrendClassIDtoStack queue contains: 15 ## STATE DET_ID ITER TYPE CLASS_ID 5 16 6 17 # select images ready for copy … … 8 19 # compare the new list with the ones already selected 9 20 task dettool.stack.load 10 command dettool - chip -processed21 command dettool -tostack -simple 11 22 host local 12 23 … … 22 33 23 34 # compare output with newImage queue 24 # only add entries which do n't exist in queue35 # only add entries which do not exist in queue 25 36 queuesize stdout -var Nqueue 26 37 for i 0 $Nqueue 27 38 queuepop stdout -var line 28 queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $line" 39 list word -split $line 40 $DET_ID = $word:0 41 $ITER = $word:1 42 $TYPE = $word:2 43 $CLASS_ID = $word:3 44 queuepush DetrendClassIDtoStack -uniq -key 1:2:4 "NEW $DET_ID $ITER $TYPE $CLASS_ID" 29 45 end 30 46 … … 68 84 69 85 strpop line state 70 queuepush DetrendClassIDtoStack -replace -key 0 "RUN $line" 86 queuepush DetrendClassIDtoStack -replace -key 1:2:4 "RUN $line" 87 88 # the DetrendClassIDtoStack queue contains: 89 # STATE DET_ID ITER TYPE CLASS_ID 90 ## NOTE: the queue has the STATE prepended 91 list word -split $line 92 $DET_ID = $word:1 93 $ITER = $word:2 94 $TYPE = $word:3 95 $CLASS_ID = $word:4 71 96 72 97 # specify choice of remote host: 73 # 'anyhost' specified random remote host74 # if we needed to specify a host explicitly, use a command like75 # one of the following. the -required forces execution on the76 # named host, and blocks the task until the host is available77 # host kiawe78 # host alala -required79 98 host anyhost 80 81 # choose the default recipe appropriate to this type of file82 $recipe = `get.recipe $type`83 99 84 100 # create example job options as a demonstration 85 101 options "$line" 86 87 # we can put the dettool and ppMerge commands here, or wrap them in a single script 88 # $urilist = `dettool -processed -det_id $det_id -iteration $iteration -chip" 89 # $uri_out = ??? 90 # command ppMerge $uri_out $uri $uri ... -recipe PPMERGE $recipe 91 command ppMerge.dettool $uri_out -det_id $det_id -iteration $iteration -recipe PPMERGE $recipe 102 # detrend_stack.pl 1 0 mc bias 103 command detrend_stack.pl $DET_ID $ITER $CLASS_ID $TYPE 92 104 end 93 105 94 106 # success 95 107 task.exit 0 96 # XXX need to parse the options to identify the values below (if not part of cmdline?)97 exec dettool -addstacked -det_id $det_id -iteration $iteration -class_id $class_id -procrecipe $recipe98 108 queuepush DetrendClassIDtoStack -replace -key 1:2:4 "DONE $options:0" 99 109 end … … 101 111 # default exit status 102 112 task.exit default 103 queuepush DetrendClassIDtoStack -replace -key 0"FAIL $options:0"113 queuepush DetrendClassIDtoStack -replace -key 1:2:4 "FAIL $options:0" 104 114 end 105 115 106 116 # operation times out? 107 117 task.exit timeout 108 queuepush DetrendClassIDtoStack -replace -key 0"FAIL $options:0"118 queuepush DetrendClassIDtoStack -replace -key 1:2:4 "FAIL $options:0" 109 119 end 110 120 end
Note:
See TracChangeset
for help on using the changeset viewer.
