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.stack.pro

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