IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18142 for trunk/ippTasks


Ignore:
Timestamp:
Jun 15, 2008, 8:11:07 AM (18 years ago)
Author:
eugene
Message:

updates to cleanup section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/chip.pro

    r18019 r18142  
    263263    book setword chipPendingCleanup $pageName pantaskState RUN
    264264    book getword chipPendingCleanup $pageName camera -var CAMERA
    265     book getword chipPendingCleanup $pageName exp_id -var EXP_ID
    266     book getword chipPendingCleanup $pageName exp_tag -var EXP_TAG
    267     book getword chipPendingCleanup $pageName chip_id -var CHIP_ID
    268     book getword chipPendingCleanup $pageName workdir -var WORKDIR_TEMPLATE
    269265    book getword chipPendingCleanup $pageName class_id -var CLASS_ID
    270     book getword chipPendingCleanup $pageName uri -var URI
     266    book getword chipPendingCleanup $pageName cleanup_mode -var CLEANUP_MODE
     267    book getword chipPendingCleanup $pageName path_base -var PATH_BASE
    271268    book getword chipPendingCleanup $pageName dbname -var DBNAME
    272     book getword chipPendingCleanup $pageName reduction -var REDUCTION
    273269
    274270    # specify choice of local or remote host based on camera and chip (class_id)
    275271    set.host.for.camera $CAMERA $CLASS_ID
    276272
    277     # raw workdir examples:
    278     # file://data/@HOST@.0/gpc1/20080130
    279     # neb:///@HOST@-vol0/gpc1/20080130 (need to supply volname?, or are we re-defining this each time?)
    280     set.workdir.by.camera $CAMERA $CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
    281     # out workdir examples:
    282     # file://data/ipp004.0/gpc1/20080130
    283     # neb:///ipp004-vol0/gpc1/20080130
    284 
    285     ## generate outroot specific to this exposure (& chip)
    286     # XXX probably do not need to build the outroot
    287     sprintf outroot "%s/%s/%s.ch.%s" $WORKDIR $EXP_TAG $EXP_TAG $CHIP_ID
    288 
    289273    ## generate output log based on filerule (convert the URI to a PATH)
    290     $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     274    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $PATH_BASE`
    291275    if ("$logfile" == "")
    292276      echo "WARNING: logfile not defined in chip.pro:152"
     
    300284
    301285    # XXX is everything listed here needed?
    302     $run = chip_cleanup.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --exp_tag $EXP_TAG --uri $URI --camera $CAMERA --outroot $outroot
    303     if ("$REDUCTION" != "NULL")
    304       $run = $run --reduction $REDUCTION
    305     end
     286    $run = ipp_cleanup.pl --stage chip --camera $CAMERA --class_id $CLASS_ID --mode $CLEANUP_MODE --path_base $PATH_BASE
    306287    add_standard_args run
    307288
Note: See TracChangeset for help on using the changeset viewer.