IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2007, 1:39:42 PM (19 years ago)
Author:
eugene
Message:

added multi-db support and workdirs to tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/detrend.reject.pro

    r11235 r11323  
    2626end
    2727
     28# this variable will cycle through the known database names
     29$detRejectExp_DB = 0
     30
    2831# select images ready for copy
    2932# new entries are added to detRejectExp
     
    4043
    4144  task.exec
    42     command dettool -residdetrun -limit 20
     45    if ($DB:n == 0)
     46      option DEFAULT
     47      command dettool -residdetrun -limit 20
     48    else
     49      # save the DB name for the exit tasks
     50      option $DB:$detRejectExp_DB
     51      command dettool -residdetrun -limit 20 -dbname $DB:$detRejectExp_DB
     52      $detRejectExp_DB ++
     53      if ($detRejectExp_DB >= $DB:n) set detRejectExp_DB = 0
     54    end
    4355  end
    4456
     
    4658  task.exit    0
    4759    # convert 'stdout' to book format
    48     ipptool2book stdout detRejectExp -key det_id:iteration -uniq
     60    ipptool2book stdout detRejectExp -key det_id:iteration -uniq -setword dbname $options:0
    4961    if ($VERBOSE > 2)
    5062      book listbook detRejectExp
     
    5365    # delete existing entries which are DONE
    5466    book delpage detRejectExp -key state DONE
     67    book delpage detRejectExp -key state DATA_ERR
    5568  end
    5669
     
    87100    book getword detRejectExp $pageName mode      -var MODE     
    88101    book getword detRejectExp $pageName camera    -var CAMERA   
     102    book getword detRejectExp $pageName workdir   -var WORKDIR
     103    book getword detRejectExp $pageName dbname    -var DBNAME
     104    set_standard_args
    89105
    90106    # specify choice of remote host:
     
    104120    # create example job options as a demonstration
    105121    if ($VERBOSE > 1)
    106       echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA
     122      echo command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA $ARGS
    107123    end
    108     command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA
     124    command detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA $ARGS
    109125 end
    110126
Note: See TracChangeset for help on using the changeset viewer.