Changeset 11109 for branches/eam_branch_00/ippTasks/detrend.stack.pro
- Timestamp:
- Jan 15, 2007, 3:05:56 PM (20 years ago)
- File:
-
- 1 edited
-
branches/eam_branch_00/ippTasks/detrend.stack.pro (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_00/ippTasks/detrend.stack.pro
r11019 r11109 1 1 ## this file contains the tasks for running the detrend stacking stage 2 ## these tasks use the book detPendingStackedImfile 2 3 3 4 if ($?network == 0) … … 19 20 exec mkdir -p $LOGSUBDIR 20 21 21 book init DetrendStackClass22 book init detPendingStackedImfile 22 23 23 24 macro detstack.status 24 book listbook DetrendStackClass25 book listbook detPendingStackedImfile 25 26 end 26 27 27 28 # select images ready for detrend_stack.pl 28 # new entries are added to DetrendStackClass29 # new entries are added to detPendingStackedImfile 29 30 # compare the new list with the ones already selected 30 31 task dettool.stack.load … … 35 36 periods -timeout 30 36 37 37 stdout $LOGSUBDIR/detstack.log38 stdout NULL 38 39 stderr $LOGSUBDIR/detstack.log 39 40 … … 45 46 task.exit 0 46 47 # convert 'stdout' to book format 47 ipptool2book stdout DetrendStackClass-key det_id:iteration:class_id -uniq48 ipptool2book stdout detPendingStackedImfile -key det_id:iteration:class_id -uniq 48 49 if ($VERBOSE > 2) 49 book listbook DetrendStackClass50 book listbook detPendingStackedImfile 50 51 end 51 52 52 53 # delete existing entries which are DONE 53 book delpage DetrendStackClass-key state DONE54 book delpage detPendingStackedImfile -key state DONE 54 55 end 55 56 … … 72 73 73 74 task.exec 74 book npages DetrendStackClass-var N75 book npages detPendingStackedImfile -var N 75 76 if ($N == 0) break 76 77 if ($network == 0) break 77 78 78 # look for new images in DetrendStackClass79 book getpage DetrendStackClass0 -var pageName -key state NULL79 # look for new images in detPendingStackedImfile 80 book getpage detPendingStackedImfile 0 -var pageName -key state NULL 80 81 if ($pageName == NULL) break 81 82 82 book setword DetrendStackClass$pageName state RUN83 book getword DetrendStackClass$pageName det_id -var DET_ID84 book getword DetrendStackClass$pageName iteration -var ITERATION85 book getword DetrendStackClass$pageName det_type -var DET_TYPE86 book getword DetrendStackClass$pageName class_id -var CLASS_ID87 book getword DetrendStackClass$pageName camera -var CAMERA83 book setword detPendingStackedImfile $pageName state RUN 84 book getword detPendingStackedImfile $pageName det_id -var DET_ID 85 book getword detPendingStackedImfile $pageName iteration -var ITERATION 86 book getword detPendingStackedImfile $pageName det_type -var DET_TYPE 87 book getword detPendingStackedImfile $pageName class_id -var CLASS_ID 88 book getword detPendingStackedImfile $pageName camera -var CAMERA 88 89 89 90 # specify choice of remote host: … … 95 96 96 97 # XXX add $WORKDIR/$LOG_DIR 98 # XXX use ipp_filename.pl to lookup output file names 97 99 stdout $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.$CLASS_ID.log 98 100 stderr $LOGSUBDIR/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.$CLASS_ID.log … … 108 110 end 109 111 110 # success111 task.exit 0112 book setword DetrendStackClass $options:0 state DONE113 end114 115 112 # default exit status 116 113 task.exit default 117 showcommand failure 118 book setword DetrendStackClass $options:0 state FAIL 114 process_exit detPendingStackedImfile $options:0 $JOB_STATUS 119 115 end 120 116 … … 122 118 task.exit timeout 123 119 showcommand timeout 124 book setword DetrendStackClass$options:0 state TIMEOUT120 book setword detPendingStackedImfile $options:0 state TIMEOUT 125 121 end 126 122 end
Note:
See TracChangeset
for help on using the changeset viewer.
