IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 22, 2008, 5:35:42 PM (18 years ago)
Author:
eugene
Message:

updates from eam_branch_20080121

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/chip.pro

    r16173 r16195  
    121121    book getword chipPendingImfile $pageName exp_tag -var EXP_TAG
    122122    book getword chipPendingImfile $pageName chip_id -var CHIP_ID
    123     book getword chipPendingImfile $pageName workdir -var WORKDIR
     123    book getword chipPendingImfile $pageName workdir -var WORKDIR_TEMPLATE
    124124    book getword chipPendingImfile $pageName class_id -var CLASS_ID
    125125    book getword chipPendingImfile $pageName uri -var URI
     
    130130    set.host.for.camera $camera $class_id
    131131
    132     ## generate output log based on filerule
    133     if ("$WORKDIR" == "NULL")
    134       $outpath = `pwd`
    135     else
    136       $outpath = `ipp_datapath.pl $WORKDIR`
    137     end
    138     sprintf outpath "%s/%s" $outpath $EXP_TAG
    139     sprintf outroot "%s/%s.ch.%s" $outpath $EXP_TAG $CHIP_ID
     132    # raw workdir examples:
     133    # file://data/@HOST@.0/gpc1/20080130
     134    # neb:///@HOST@-vol0/gpc1/20080130 (need to supply volname?, or are we re-defining this each time?)
     135    set.workdir.by.camera $CAMERA $CLASS_ID $WORKDIR_TEMPLATE $default_host WORKDIR
     136    # out workdir examples:
     137    # file://data/ipp004.0/gpc1/20080130
     138    # neb:///ipp004-vol0/gpc1/20080130
     139
     140    ## generate outroot specific to this exposure (& chip)
     141    sprintf outroot "%s/%s/%s.ch.%s" $WORKDIR $EXP_TAG $EXP_TAG $CHIP_ID
     142
     143    ## generate output log based on filerule (convert the URI to a PATH)
    140144    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    141145    if ("$logfile" == "")
    142       sprintf logfile "%s.%s.log" $outroot $CLASS_ID
     146      echo "WARNING: logfile not defined in chip.pro:152"
     147      break
    143148    end
    144149
    145150    stdout $logfile
    146151    stderr $logfile
    147     exec mkdir -p $outpath
    148152
    149     $run = chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --exp_tag $EXP_TAG --uri $URI --camera $CAMERA
    150     if ("$WORKDIR" != "NULL")
    151       $run = $run --workdir $WORKDIR
    152     end
     153    $run = chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --exp_tag $EXP_TAG --uri $URI --camera $CAMERA --outroot $outroot
    153154    if ("$REDUCTION" != "NULL")
    154155      $run = $run --reduction $REDUCTION
Note: See TracChangeset for help on using the changeset viewer.