Changeset 12107
- Timestamp:
- Feb 27, 2007, 5:54:08 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/warp.pro (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/warp.pro
r12074 r12107 2 2 3 3 ### This is done in two (main) steps. After a warp (with associated warp_id) is defined, 4 ### overlaps between the exposure being warped and skycells are calculated (tasks in warp PendingExp).4 ### overlaps between the exposure being warped and skycells are calculated (tasks in warpInputExp). 5 5 ### Then for each skycell, the warp is made (tasks in warpPendingSkycell). 6 6 … … 26 26 27 27 ### Initialise the books containing the tasks to do 28 book init warp PendingExp29 book init warpPendingSky cell28 book init warpInputExp 29 book init warpPendingSkyCell 30 30 31 31 ### Database lists … … 35 35 ### Check status of warping tasks 36 36 macro warp.status 37 book listbook warp PendingExp37 book listbook warpInputExp 38 38 book listbook warpPendingSkycell 39 39 end … … 41 41 ### Reset warping tasks 42 42 macro warp.reset 43 book init warp PendingExp43 book init warpInputExp 44 44 book init warpPendingSkycell 45 45 end … … 78 78 79 79 ### Load tasks for calculating the warp overlaps 80 ### Tasks are loaded into warp PendingExp.80 ### Tasks are loaded into warpInputExp. 81 81 task warp.exp.load 82 82 host local … … 106 106 task.exit 0 107 107 # convert 'stdout' to book format 108 ipptool2book stdout warp PendingExp -key warp_id -uniq -setword dbname $options:0108 ipptool2book stdout warpInputExp -key warp_id -uniq -setword dbname $options:0 109 109 if ($VERBOSE > 2) 110 book listbook warp PendingExp110 book listbook warpInputExp 111 111 end 112 112 113 113 # delete existing entries in the appropriate states 114 process_cleanup warp PendingExp114 process_cleanup warpInputExp 115 115 end 116 116 … … 127 127 128 128 ### Run tasks for calculating the warp overlaps 129 ### Tasks are taken from warp PendingExp.129 ### Tasks are taken from warpInputExp. 130 130 task warp.exp.run 131 131 periods -poll $runpoll … … 134 134 135 135 task.exec 136 book npages warp PendingExp -var N136 book npages warpInputExp -var N 137 137 if ($N == 0) break 138 138 if ($network == 0) break 139 139 140 # look for new images in warp PendingExp (state == NULL)141 book getpage warp PendingExp 0 -var pageName -key state NULL140 # look for new images in warpInputExp (state == NULL) 141 book getpage warpInputExp 0 -var pageName -key state NULL 142 142 if ($pageName == NULL) break 143 143 144 book setword warp PendingExp $pageName state RUN145 book getword warp PendingExp $pageName warp_id -var WARP_ID146 book getword warp PendingExp $pageName camera -var CAMERA147 book getword warp PendingExp $pageName workdir -var WORKDIR148 book getword warp PendingExp $pageName dbname -var DBNAME144 book setword warpInputExp $pageName state RUN 145 book getword warpInputExp $pageName warp_id -var WARP_ID 146 book getword warpInputExp $pageName camera -var CAMERA 147 book getword warpInputExp $pageName workdir -var WORKDIR 148 book getword warpInputExp $pageName dbname -var DBNAME 149 149 set_standard_args 150 150 … … 177 177 # default exit status 178 178 task.exit default 179 process_exit warp PendingExp $options:0 $JOB_STATUS179 process_exit warpInputExp $options:0 $JOB_STATUS 180 180 end 181 181 … … 183 183 task.exit timeout 184 184 showcommand timeout 185 book setword warp PendingExp $options:0 state TIMEOUT185 book setword warpInputExp $options:0 state TIMEOUT 186 186 end 187 187 end … … 239 239 ### Run tasks for calculating the warp overlaps 240 240 ### Tasks are taken from warpPendingSkycell. 241 task warp. exp.run241 task warp.skycell.run 242 242 periods -poll $runpoll 243 243 periods -exec $runexec
Note:
See TracChangeset
for help on using the changeset viewer.
