Changeset 12116 for trunk/ippTasks/stack.pro
- Timestamp:
- Feb 27, 2007, 6:27:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/stack.pro (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/stack.pro
r12078 r12116 2 2 3 3 ### After a stack (with associated stack_id) is defined, the stack is performed 4 ### (tasks in stack PendingSkycell).4 ### (tasks in stackSumSkyfile). 5 5 6 6 … … 25 25 26 26 ### Initialise the books containing the tasks to do 27 book init stack PendingSkycell27 book init stackSumSkyfile 28 28 29 29 ### Database lists … … 32 32 ### Check status of stacking tasks 33 33 macro stack.status 34 book listbook stack PendingSkycell34 book listbook stackSumSkyfile 35 35 end 36 36 37 37 ### Reset stacking tasks 38 38 macro stack.reset 39 book init stack PendingSkycell39 book init stackSumSkyfile 40 40 end 41 41 … … 62 62 63 63 ### Load tasks for doing the stack 64 ### Tasks are loaded into stack PendingSkycell.64 ### Tasks are loaded into stackSumSkyfile. 65 65 task stack.skycell.load 66 66 host local … … 77 77 if ($DB:n == 0) 78 78 option DEFAULT 79 command stacktool -tos tacked-limit 2079 command stacktool -tosum -limit 20 80 80 else 81 81 # save the DB name for the exit tasks 82 82 option $DB:$stackSkycell_DB 83 command stacktool -tos tackskyfile-limit 20 -dbname $DB:$stackSkycell_DB83 command stacktool -tosum -limit 20 -dbname $DB:$stackSkycell_DB 84 84 $stackSkycell_DB ++ 85 85 if ($stackSkycell_DB >= $DB:n) set stackSkycell_DB = 0 … … 90 90 task.exit 0 91 91 # convert 'stdout' to book format 92 ipptool2book stdout stack PendingSkycell-key stack_id -uniq -setword dbname $options:092 ipptool2book stdout stackSumSkyfile -key stack_id -uniq -setword dbname $options:0 93 93 if ($VERBOSE > 2) 94 book listbook stack PendingSkycell94 book listbook stackSumSkyfile 95 95 end 96 96 97 97 # delete existing entries in the appropriate states 98 process_cleanup stack PendingSkycell98 process_cleanup stackSumSkyfile 99 99 end 100 100 … … 111 111 112 112 ### Run tasks for calculating the stack overlaps 113 ### Tasks are taken from stack PendingSkycell.114 task stack. exp.run113 ### Tasks are taken from stackSumSkyfile. 114 task stack.skycell.run 115 115 periods -poll $runpoll 116 116 periods -exec $runexec … … 118 118 119 119 task.exec 120 book npages stack PendingSkycell-var N120 book npages stackSumSkyfile -var N 121 121 if ($N == 0) break 122 122 if ($network == 0) break 123 123 124 # look for new images in stack PendingSkycell(state == NULL)125 book getpage stack PendingSkycell0 -var pageName -key state NULL124 # look for new images in stackSumSkyfile (state == NULL) 125 book getpage stackSumSkyfile 0 -var pageName -key state NULL 126 126 if ($pageName == NULL) break 127 127 128 book setword stackPendingSkycell $pageName state RUN 129 book getword stackPendingSkycell $pageName stack_id -var STACK_ID 130 book getword stackPendingSkycell $pageName camera -var CAMERA 131 book getword stackPendingSkycell $pageName workdir -var WORKDIR 132 book getword stackPendingSkycell $pageName dbname -var DBNAME 128 book setword stackSumSkyfile $pageName state RUN 129 book getword stackSumSkyfile $pageName stack_id -var STACK_ID 130 book getword stackSumSkyfile $pageName workdir -var WORKDIR 131 book getword stackSumSkyfile $pageName dbname -var DBNAME 133 132 set_standard_args 134 133 … … 154 153 # create the command line 155 154 if ($VERBOSE > 1) 156 echo command stack_skycell.pl --stack_id $STACK_ID -- camera $CAMERA --workdir $WORKDIR $ARGS155 echo command stack_skycell.pl --stack_id $STACK_ID --workdir $WORKDIR $ARGS 157 156 end 158 command stack_skycell.pl --stack_id $STACK_ID -- camera $CAMERA --workdir $WORKDIR $ARGS157 command stack_skycell.pl --stack_id $STACK_ID --workdir $WORKDIR $ARGS 159 158 end 160 159 161 160 # default exit status 162 161 task.exit default 163 process_exit stack PendingSkycell$options:0 $JOB_STATUS162 process_exit stackSumSkyfile $options:0 $JOB_STATUS 164 163 end 165 164 … … 167 166 task.exit timeout 168 167 showcommand timeout 169 book setword stack PendingSkycell$options:0 state TIMEOUT168 book setword stackSumSkyfile $options:0 state TIMEOUT 170 169 end 171 170 end
Note:
See TracChangeset
for help on using the changeset viewer.
