Changeset 23480 for trunk/ippTasks/detrend.norm.pro
- Timestamp:
- Mar 20, 2009, 6:08:06 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.norm.pro (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.norm.pro
r23230 r23480 9 9 book init detPendingNormImfile 10 10 book init detPendingNormExp 11 12 book init detCleanupNormStatImfile13 book init detCleanupNormImfile14 book init detCleanupNormExp15 11 16 12 macro detnorm.reset … … 18 14 book init detPendingNormImfile 19 15 book init detPendingNormExp 20 21 book init detCleanupNormStatImfile22 book init detCleanupNormImfile23 book init detCleanupNormExp24 16 end 25 17 … … 28 20 book listbook detPendingNormImfile 29 21 book listbook detPendingNormExp 30 31 book listbook detCleanupNormStatImfile32 book listbook detCleanupNormImfile33 book listbook detCleanupNormExp34 22 end 35 23 … … 53 41 active true 54 42 end 55 56 task detrend.cleanup.norm.load57 active true58 end59 task detrend.cleanup.norm.run60 active true61 end62 task detrend.cleanup.normexp.load63 active true64 end65 task detrend.cleanup.normexp.run66 active true67 end68 task detrend.cleanup.normstat.load69 active true70 end71 task detrend.cleanup.normstat.run72 active true73 end74 43 end 75 44 … … 91 60 end 92 61 task detrend.normstat.run 93 active false94 end95 task detrend.cleanup.norm.load96 active false97 end98 task detrend.cleanup.norm.run99 active false100 end101 task detrend.cleanup.normexp.load102 active false103 end104 task detrend.cleanup.normexp.run105 active false106 end107 task detrend.cleanup.normstat.load108 active false109 end110 task detrend.cleanup.normstat.run111 62 active false 112 63 end … … 117 68 $detPendingNormImfile_DB = 0 118 69 $detPendingNormExp_DB = 0 119 120 $detCleanupNormStatImfile_DB = 0121 $detCleanupNormImfile_DB = 0122 $detCleanupNormExp_DB = 0123 70 124 71 # select images ready for copy … … 493 440 end 494 441 end 495 496 ########## cleanup normstat ###########497 task detrend.cleanup.normstat.load498 host local499 500 periods -poll $LOADPOLL501 periods -exec $LOADEXEC502 periods -timeout 30503 npending 1504 active true505 506 stdout NULL507 stderr $LOGDIR/detrend.cleanup.normstat.log508 509 task.exec510 $run = dettool -pendingcleanup_normalizedstat511 if ($DB:n == 0)512 option DEFAULT513 else514 # save the DB name for the exit tasks515 option $DB:$detCleanupNormStatImfile_DB516 $run = $run -dbname $DB:$detCleanupNormStatImfile_DB517 $detCleanupNormStatImfile_DB ++518 if ($detCleanupNormStatImfile_DB >= $DB:n) set detCleanupNormStatImfile_DB = 0519 end520 add_poll_args run521 command $run522 end523 524 # success525 task.exit 0526 # convert 'stdout' to book format527 ipptool2book stdout detCleanupNormStatImfile -key det_id:iteration -uniq -setword dbname $options:0 -setword pantaskState INIT528 if ($VERBOSE > 2)529 book listbook detCleanupNormStatImfile530 end531 532 # delete existing entries in the appropriate pantaskStates533 process_cleanup detCleanupNormStatImfile534 end535 536 # locked list537 task.exit default538 showcommand failure539 end540 541 task.exit crash542 showcommand crash543 end544 545 # operation times out?546 task.exit timeout547 showcommand timeout548 end549 end550 551 # run the ipp_cleanup.pl script on pending images552 task detrend.cleanup.normstat.run553 periods -poll $RUNPOLL554 periods -exec $RUNEXEC555 periods -timeout 60556 active true557 558 task.exec559 book npages detCleanupNormStatImfile -var N560 if ($N == 0) break561 if ($NETWORK == 0) break562 563 # look for new images in detCleanupNormStatImfile (pantaskState == INIT)564 book getpage detCleanupNormStatImfile 0 -var pageName -key pantaskState INIT565 if ("$pageName" == "NULL") break566 567 book setword detCleanupNormStatImfile $pageName pantaskState RUN568 book getword detCleanupNormStatImfile $pageName det_id -var DET_ID569 book getword detCleanupNormStatImfile $pageName iteration -var ITERATION570 book getword detCleanupNormStatImfile $pageName camera -var CAMERA571 book getword detCleanupNormStatImfile $pageName state -var CLEANUP_MODE572 book getword detCleanupNormStatImfile $pageName dbname -var DBNAME573 574 # specify choice of local or remote host based on camera and chip (class_id)575 set.host.for.camera $CAMERA FPA576 577 stdout $LOGDIR/detrend.cleanup.normstat.log578 stderr $LOGDIR/detrend.cleanup.normstat.log579 580 # XXX is everything listed here needed?581 $run = ipp_cleanup.pl --stage detrend.normstat.imfile --stage_id $DET_ID --iteration $ITERATION --camera $CAMERA --mode $CLEANUP_MODE582 add_standard_args run583 584 # save the pageName for future reference below585 options $pageName586 587 # create the command line588 if ($VERBOSE > 1)589 echo command $run590 end591 command $run592 end593 594 # default exit status595 task.exit default596 process_exit detCleanupNormStatImfile $options:0 $JOB_STATUS597 end598 599 task.exit crash600 showcommand crash601 book setword detCleanupNormStatImfile $options:0 pantaskState CRASH602 end603 604 # operation timed out?605 task.exit timeout606 showcommand timeout607 book setword detCleanupNormStatImfile $options:0 pantaskState TIMEOUT608 end609 end610 611 ########## cleanup norm (normalized.imfile) ###########612 task detrend.cleanup.norm.load613 host local614 615 periods -poll $LOADPOLL616 periods -exec $LOADEXEC617 periods -timeout 30618 npending 1619 active true620 621 stdout NULL622 stderr $LOGDIR/detrend.cleanup.norm.log623 624 task.exec625 $run = dettool -pendingcleanup_normalizedimfile626 if ($DB:n == 0)627 option DEFAULT628 else629 # save the DB name for the exit tasks630 option $DB:$detCleanupNormImfile_DB631 $run = $run -dbname $DB:$detCleanupNormImfile_DB632 $detCleanupNormImfile_DB ++633 if ($detCleanupNormImfile_DB >= $DB:n) set detCleanupNormImfile_DB = 0634 end635 add_poll_args run636 command $run637 end638 639 # success640 task.exit 0641 # convert 'stdout' to book format642 ipptool2book stdout detCleanupNormImfile -key det_id:iteration:class_id -uniq -setword dbname $options:0 -setword pantaskState INIT643 if ($VERBOSE > 2)644 book listbook detCleanupNormImfile645 end646 647 # delete existing entries in the appropriate pantaskStates648 process_cleanup detCleanupNormImfile649 end650 651 # locked list652 task.exit default653 showcommand failure654 end655 656 task.exit crash657 showcommand crash658 end659 660 # operation times out?661 task.exit timeout662 showcommand timeout663 end664 end665 666 # run the ipp_cleanup.pl script on pending images667 task detrend.cleanup.norm.run668 periods -poll $RUNPOLL669 periods -exec $RUNEXEC670 periods -timeout 60671 active true672 673 task.exec674 book npages detCleanupNormImfile -var N675 if ($N == 0) break676 if ($NETWORK == 0) break677 678 # look for new images in detCleanupNormImfile (pantaskState == INIT)679 book getpage detCleanupNormImfile 0 -var pageName -key pantaskState INIT680 if ("$pageName" == "NULL") break681 682 book setword detCleanupNormImfile $pageName pantaskState RUN683 book getword detCleanupNormImfile $pageName det_id -var DET_ID684 book getword detCleanupNormImfile $pageName iteration -var ITERATION685 book getword detCleanupNormImfile $pageName class_id -var CLASS_ID686 book getword detCleanupNormImfile $pageName camera -var CAMERA687 book getword detCleanupNormImfile $pageName state -var CLEANUP_MODE688 book getword detCleanupNormImfile $pageName dbname -var DBNAME689 690 # specify choice of local or remote host based on camera and chip (class_id)691 set.host.for.camera $CAMERA FPA692 693 stdout $LOGDIR/detrend.cleanup.norm.log694 stderr $LOGDIR/detrend.cleanup.norm.log695 696 # XXX is everything listed here needed?697 $run = ipp_cleanup.pl --stage detrend.norm.imfile --stage_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --camera $CAMERA --mode $CLEANUP_MODE698 add_standard_args run699 700 # save the pageName for future reference below701 options $pageName702 703 # create the command line704 if ($VERBOSE > 1)705 echo command $run706 end707 command $run708 end709 710 # default exit status711 task.exit default712 process_exit detCleanupNormImfile $options:0 $JOB_STATUS713 end714 715 task.exit crash716 showcommand crash717 book setword detCleanupNormImfile $options:0 pantaskState CRASH718 end719 720 # operation timed out?721 task.exit timeout722 showcommand timeout723 book setword detCleanupNormImfile $options:0 pantaskState TIMEOUT724 end725 end726 727 ########## cleanup normexp ###########728 task detrend.cleanup.normexp.load729 host local730 731 periods -poll $LOADPOLL732 periods -exec $LOADEXEC733 periods -timeout 30734 npending 1735 active true736 737 stdout NULL738 stderr $LOGDIR/detrend.normexp.cleanup.log739 740 task.exec741 $run = dettool -pendingcleanup_normalizedexp742 if ($DB:n == 0)743 option DEFAULT744 else745 # save the DB name for the exit tasks746 option $DB:$detCleanupNormExp_DB747 $run = $run -dbname $DB:$detCleanupNormExp_DB748 $detCleanupNormExp_DB ++749 if ($detCleanupNormExp_DB >= $DB:n) set detCleanupNormExp_DB = 0750 end751 add_poll_args run752 command $run753 end754 755 # success756 task.exit 0757 # convert 'stdout' to book format758 ipptool2book stdout detCleanupNormExp -key det_id:iteration -uniq -setword dbname $options:0 -setword pantaskState INIT759 if ($VERBOSE > 2)760 book listbook detCleanupNormExp761 end762 763 # delete existing entries in the appropriate pantaskStates764 process_cleanup detCleanupNormExp765 end766 767 # locked list768 task.exit default769 showcommand failure770 end771 772 task.exit crash773 showcommand crash774 end775 776 # operation times out?777 task.exit timeout778 showcommand timeout779 end780 end781 782 # run the ipp_cleanup.pl script on pending images783 task detrend.cleanup.normexp.run784 periods -poll $RUNPOLL785 periods -exec $RUNEXEC786 periods -timeout 60787 active true788 789 task.exec790 book npages detCleanupNormExp -var N791 if ($N == 0) break792 if ($NETWORK == 0) break793 794 # look for new images in detCleanupNormExp (pantaskState == INIT)795 book getpage detCleanupNormExp 0 -var pageName -key pantaskState INIT796 if ("$pageName" == "NULL") break797 798 book setword detCleanupNormExp $pageName pantaskState RUN799 book getword detCleanupNormExp $pageName det_id -var DET_ID800 book getword detCleanupNormExp $pageName iteration -var ITERATION801 book getword detCleanupNormExp $pageName camera -var CAMERA802 book getword detCleanupNormExp $pageName state -var CLEANUP_MODE803 book getword detCleanupNormExp $pageName dbname -var DBNAME804 805 # specify choice of local or remote host based on camera and chip (class_id)806 set.host.for.camera $CAMERA FPA807 808 stdout $LOGDIR/detrend.cleanup.normexp.log809 stderr $LOGDIR/detrend.cleanup.normexp.log810 811 # XXX is everything listed here needed?812 $run = ipp_cleanup.pl --stage detrend.norm.exp --stage_id $DET_ID --iteration $ITERATION --camera $CAMERA --mode $CLEANUP_MODE813 add_standard_args run814 815 # save the pageName for future reference below816 options $pageName817 818 # create the command line819 if ($VERBOSE > 1)820 echo command $run821 end822 command $run823 end824 825 # default exit status826 task.exit default827 process_exit detCleanupNormExp $options:0 $JOB_STATUS828 end829 830 task.exit crash831 showcommand crash832 book setword detCleanupNormExp $options:0 pantaskState CRASH833 end834 835 # operation timed out?836 task.exit timeout837 showcommand timeout838 book setword detCleanupNormExp $options:0 pantaskState TIMEOUT839 end840 end841
Note:
See TracChangeset
for help on using the changeset viewer.
