IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2007, 1:42:40 PM (19 years ago)
Author:
eugene
Message:

unifying, cleaning logfile output names

File:
1 edited

Legend:

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

    r12747 r13683  
    154154    # XXX use ipp_filename.pl to lookup output file names
    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/detresid.$DET_ID.$ITERATION.$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.detresid.$DET_ID.$ITERATION
     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_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE
     
    277282    # XXX use ipp_filename.pl to lookup output file names
    278283    if ("$WORKDIR" == "NULL")
    279       $outroot = `pwd`
    280     else
    281       $outroot = `ipp_datapath.pl $WORKDIR`
    282     end
    283     $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    284     $logfile = $outroot/detresid.$DET_ID.$ITERATION.log
     284      $outpath = `pwd`
     285    else
     286      $outpath = `ipp_datapath.pl $WORKDIR`
     287    end
     288    $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
     289    $outroot = $outpath/$EXP_TAG.detresid.$DET_ID.$ITERATION
     290    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
     291
    285292    stdout $logfile
    286293    stderr $logfile
    287     exec mkdir -p $outroot
     294    exec mkdir -p $outpath
    288295
    289296    $run = detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA
Note: See TracChangeset for help on using the changeset viewer.