IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2007, 12:01:01 PM (19 years ago)
Author:
eugene
Message:

adjusting output names, using log filerules

File:
1 edited

Legend:

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

    r12747 r13680  
    154154    ## output log filename
    155155    if ("$WORKDIR" == "NULL")
    156       $outroot = `pwd`
    157     else
    158       $outroot = `ipp_datapath.pl $WORKDIR`
    159     end
    160     $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    161     $logfile = $outroot/detproc.$DET_ID.$CLASS_ID.log
     156      $outpath = `pwd`
     157    else
     158      $outpath = `ipp_datapath.pl $WORKDIR`
     159    end
     160    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
     161    $outroot = $outpath/$EXP_TAG.detproc.$DET_ID
     162    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     163    if ($logfile == "")
     164      $logfile = $outroot.$CLASS_ID.log
     165    end
     166
    162167    stdout $logfile
    163168    stderr $logfile
    164     exec mkdir -p $outroot
     169    exec mkdir -p $outpath
    165170
    166171    $run = detrend_process_imfile.pl --det_id $DET_ID --det_type $DET_TYPE --exp_tag $EXP_TAG --class_id $CLASS_ID --input_uri $URI --camera $CAMERA
     
    276281    # XXX push this into the filerules?
    277282    if ("$WORKDIR" == "NULL")
    278       $outroot = `pwd`
    279     else
    280       $outroot = `ipp_datapath.pl $WORKDIR`
    281     end
    282     $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    283     $logfile = $outroot/detproc.$DET_ID.$ITERATION.log
     283      $outpath = `pwd`
     284    else
     285      $outpath = `ipp_datapath.pl $WORKDIR`
     286    end
     287    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
     288    $outroot = $outpath/$EXP_TAG.detproc.$DET_ID.$ITERATION
     289    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
     290    if ($logfile == "")
     291      $logfile = $outroot.log
     292    end
     293
    284294    stdout $logfile
    285295    stderr $logfile
    286     exec mkdir -p $outroot
     296    exec mkdir -p $outpath
    287297
    288298    $run = detrend_process_exp.pl --det_id $DET_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
Note: See TracChangeset for help on using the changeset viewer.