IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 5:41:36 PM (19 years ago)
Author:
Paul Price
Message:

Fixing up workdir, so that operations go into the current directory if workdir is NULL

File:
1 edited

Legend:

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

    r12126 r12368  
    154154
    155155    # XXX use ipp_filename.pl to lookup output file names
    156     $outroot = `ipp_datapath.pl $WORKDIR`
     156    if ($WORKDIR == NULL)
     157      $outroot = `pwd`
     158    else
     159      $outroot = `ipp_datapath.pl $WORKDIR`
     160    end
    157161    $outroot = $outroot/$EXP_TAG
    158162    $logfile = $outroot/detresid.$DET_ID.$ITERATION.$CLASS_ID.log
     
    166170    # create command
    167171    if ($VERBOSE > 1)
    168       echo command 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 $ARGS
    169     end
    170     command 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 $ARGS
     172      echo command 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 --workdir $outroot $ARGS
     173    end
     174    command 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 --workdir $outroot $ARGS
    171175  end
    172176
     
    268272
    269273    # XXX use ipp_filename.pl to lookup output file names
    270     $outroot = `ipp_datapath.pl $WORKDIR`
     274    if ($WORKDIR == NULL)
     275      $outroot = `pwd`
     276    else
     277      $outroot = `ipp_datapath.pl $WORKDIR`
     278    end
    271279    $outroot = $outroot/$EXP_TAG
    272280    $logfile = $outroot/detresid.$DET_ID.$ITERATION.log
     
    280288    # create example job options as a demonstration
    281289    if ($VERBOSE > 1)
    282       echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA $ARGS
    283     end
    284     command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA $ARGS
     290      echo command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
     291    end
     292    command detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --workdir $outroot $ARGS
    285293  end
    286294
Note: See TracChangeset for help on using the changeset viewer.