IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14116


Ignore:
Timestamp:
Jul 10, 2007, 3:19:20 PM (19 years ago)
Author:
eugene
Message:

adding reduction, using exp_tag for output names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/camera.pro

    r14042 r14116  
    118118    book setword camPendingExp $pageName pantaskState RUN
    119119    book getword camPendingExp $pageName camera -var CAMERA
    120     book getword camPendingExp $pageName exp_id -var EXP_ID
     120    book getword camPendingExp $pageName exp_tag -var EXP_TAG
    121121    book getword camPendingExp $pageName cam_id -var CAM_ID
    122122    book getword camPendingExp $pageName workdir -var WORKDIR
    123123    book getword camPendingExp $pageName dvodb  -var DVODB
    124124    book getword camPendingExp $pageName dbname -var DBNAME
     125    book getword camPendingExp $pageName reduction -var REDUCTION
    125126
    126127    # specify choice of remote host:(need to choose based on chips)
     
    133134    # output log from filerule
    134135    if ("$WORKDIR" == "NULL")
    135       $outroot = `pwd`
     136      $outpath = `pwd`
    136137    else
    137       $outroot = `ipp_datapath.pl $WORKDIR`
     138      $outpath = `ipp_datapath.pl $WORKDIR`
    138139    end
    139     $outroot = $outroot/$EXP_ID
    140     $logfile = $outroot/cam.log
     140    $outpath = $outpath/$EXP_TAG
     141    $outroot = $outpath/$EXP_TAG.cm.$CAM_ID
     142    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
     143    if ("$logfile" == "")
     144      $logfile = $outroot.log
     145    end
     146
    141147    stdout $logfile
    142148    stderr $logfile
    143     exec mkdir -p $outroot
     149    exec mkdir -p $outpath
    144150
    145     $run = camera_exp.pl --exp_id $EXP_ID --cam_id $CAM_ID --camera $CAMERA
     151    $run = camera_exp.pl --exp_tag $EXP_TAG --cam_id $CAM_ID --camera $CAMERA
    146152    if ("$WORKDIR" != "NULL")
    147153      $run = $run --workdir $WORKDIR
     154    end
     155    if ("$REDUCTION" != "NULL")
     156      $run = $run --reduction $REDUCTION
    148157    end
    149158    if ("$DVODB" != "NULL")
Note: See TracChangeset for help on using the changeset viewer.