IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14693


Ignore:
Timestamp:
Aug 29, 2007, 3:15:26 PM (19 years ago)
Author:
eugene
Message:

use sprintf to avoid parsing names with numbers and dashes as math expressions

Location:
trunk/ippTasks
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/camera.pro

    r14681 r14693  
    140140      $outpath = `ipp_datapath.pl $WORKDIR`
    141141    end
    142     $outpath = $outpath/$EXP_TAG
    143     $outroot = $outpath/$EXP_TAG.cm.$CAM_ID
     142    sprintf outpath "%s/%s" $outpath $EXP_TAG
     143    sprintf outroot "%s/%s.cm.%s" $outpath $EXP_TAG $CAM_ID
    144144    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
    145145    if ("$logfile" == "")
  • trunk/ippTasks/chip.pro

    r14681 r14693  
    141141      $outpath = `ipp_datapath.pl $WORKDIR`
    142142    end
    143     $outpath = $outpath/$EXP_TAG
    144     $outroot = $outpath/$EXP_TAG.ch.$CHIP_ID
     143    sprintf outpath "%s/%s" $outpath $EXP_TAG
     144    sprintf outroot "%s/%s.ch.%s" $outpath $EXP_TAG $CHIP_ID
    145145    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    146146    if ("$logfile" == "")
    147       $logfile = $outroot.$CLASS_ID.log
     147      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
    148148    end
    149149
  • trunk/ippTasks/detrend.process.pro

    r14681 r14693  
    160160      $outpath = `ipp_datapath.pl $WORKDIR`
    161161    end
    162     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    163     $outroot = $outpath/$EXP_TAG.detproc.$DET_ID
     162    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
     163    sprintf outroot "%s/%s.detproc.%s" $outpath $EXP_TAG $DET_ID
    164164    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    165165    if ("$logfile" == "")
    166       $logfile = $outroot.$CLASS_ID.log
     166      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
    167167    end
    168168
     
    289289      $outpath = `ipp_datapath.pl $WORKDIR`
    290290    end
    291     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    292     $outroot = $outpath/$EXP_TAG.detproc.$DET_ID
     291    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
     292    sprintf outroot "%s/%s.detproc.%s" $outpath $EXP_TAG $DET_ID
    293293    $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id NONE --basename $outroot`
    294294    if ("$logfile" == "")
  • trunk/ippTasks/detrend.reject.pro

    r14681 r14693  
    137137      $outroot = `ipp_datapath.pl $WORKDIR`
    138138    end
    139     $outroot = $outroot/$CAMERA.$DET_TYPE.$DET_ID
    140     $logfile = $outroot/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION.detreject.log
     139    sprintf outroot "%s/%s.%s.%s" $outroot $CAMERA $DET_TYPE $DET_ID
     140    sprintf logfile "%s/%s.%s.%s.%s.detreject.log" $outroot $CAMERA $DET_TYPE $DET_ID $ITERATION
    141141    stdout $logfile
    142142    stderr $logfile
  • trunk/ippTasks/detrend.resid.pro

    r14681 r14693  
    160160      $outpath = `ipp_datapath.pl $WORKDIR`
    161161    end
    162     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    163     $outroot = $outpath/$EXP_TAG.detresid.$DET_ID.$ITERATION
     162    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
     163    sprintf outroot "%s/%s.detresid.%s.%s" $outpath $EXP_TAG $DET_ID $ITERATION
    164164    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    165165    if ("$logfile" == "")
    166       $logfile = $outroot.$CLASS_ID.log
     166      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
    167167    end
    168168
     
    292292      $outpath = `ipp_datapath.pl $WORKDIR`
    293293    end
    294     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID/$EXP_TAG
    295     $outroot = $outpath/$EXP_TAG.detresid.$DET_ID.$ITERATION
     294    sprintf outpath "%s/%s.%s.%s/%s" $outpath $CAMERA $DET_TYPE $DET_ID $EXP_TAG
     295    sprintf outroot "%s/%s.detresid.%s.%s" $outpath $EXP_TAG $DET_ID $ITERATION
    296296    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id NONE --basename $outroot`
    297297
  • trunk/ippTasks/detrend.stack.pro

    r14681 r14693  
    139139      $outpath = `ipp_datapath.pl $WORKDIR`
    140140    end
    141     $outpath = $outpath/$CAMERA.$DET_TYPE.$DET_ID
    142     $outroot = $outpath/$CAMERA.$DET_TYPE.$DET_ID.$ITERATION
     141    sprintf outpath "%s/%s.%s.%s" $outpath $CAMERA $DET_TYPE $DET_ID
     142    sprintf outroot "%s/%s.%s.%s.%s" $outpath $CAMERA $DET_TYPE $DET_ID $ITERATION
    143143    $logfile = `ipp_filename.pl --filerule LOG.IMFILE --camera $CAMERA --class_id $CLASS_ID --basename $outroot`
    144144    if ("$logfile" == "")
    145       $logfile = $outroot.$CLASS_ID.log
     145      sprintf logfile "%s.%s.log" $outroot $CLASS_ID
    146146    end
    147147
  • trunk/ippTasks/diff.pro

    r14681 r14693  
    145145      $outroot = `ipp_datapath.pl $WORKDIR`
    146146    end
    147     $outroot = $outroot/diff$DIFF_ID
    148     $logfile = $outroot/skycell.log
     147    sprintf outroot "%s/diff.%s" $outroot $DIFF_ID
     148    sprintf logfile "%s/skycell.log" $outroot
    149149    stdout $logfile
    150150    stderr $logfile
  • trunk/ippTasks/register.pro

    r14681 r14693  
    145145
    146146    # EXP_TAG is used to generate the unique, but human-readable, filenames
    147     $EXP_TAG = $TMP_EXP_NAME.$EXP_ID
     147    sprintf EXP_TAG "%s.%s" $TMP_EXP_NAME $EXP_ID
    148148
    149149    # specify choice of remote host
     
    156156    ## generate output log based on filerule XXX put this in a function?
    157157    $outroot = `ipp_datapath.pl $WORKDIR`
    158     $outroot = $outroot/$EXP_TAG
    159     $logfile = $outroot/reg.$TMP_CLASS_ID.log
     158    sprintf outroot "%s/%s" $outroot $EXP_TAG
     159    sprintf logfile "%s/reg.%s.log" $outroot $TMP_CLASS_ID
    160160    stdout $logfile
    161161    stderr $logfile
     
    256256
    257257    # EXP_TAG is used to generate the unique, but human-readable, filenames
    258     $EXP_TAG = $TMP_EXP_NAME.$EXP_ID
     258    sprintf EXP_TAG "%s.%s" $TMP_EXP_NAME $EXP_ID
    259259
    260260    # specify choice of remote host:(need to choose based on chips)
     
    267267    ## generate output log based on filerule
    268268    $outroot = `ipp_datapath.pl $WORKDIR`
    269     $outroot = $outroot/$EXP_TAG
    270     $logfile = $outroot/$EXP_TAG.reg.log
     269    sprintf outroot "%s/%s" $outroot $EXP_TAG
     270    sprintf logfile "%s/%s.reg.log" $outroot $EXP_TAG
    271271    stdout $logfile
    272272    stderr $logfile
  • trunk/ippTasks/stack.pro

    r14681 r14693  
    145145      $outroot = `ipp_datapath.pl $WORKDIR`
    146146    end
    147     $outroot = $outroot/stack$STACK_ID
    148     $logfile = $outroot/skycell.log
     147    sprintf outroot "%s/stack.%s" $outroot $STACK_ID
     148    sprintf logfile "%s/skycell.log" $outroot
    149149    stdout $logfile
    150150    stderr $logfile
  • trunk/ippTasks/warp.pro

    r14153 r14693  
    162162      $outroot = `ipp_datapath.pl $WORKDIR`
    163163    end
    164     $outroot = $outroot/warp$WARP_ID
    165     $logfile = $outroot/overlap.log
     164    sprintf outroot "%s/warp.%s" $outroot $WARP_ID
     165    sprintf logfile "%s/overlap.log" $outroot
    166166    stdout $logfile
    167167    stderr $logfile
     
    284284      $outroot = `ipp_datapath.pl $WORKDIR`
    285285    end
    286     $outroot = $outroot/warp$WARP_ID
    287     $logfile = $outroot/skycell.log
     286    sprintf outroot "%s/warp.%s" $outroot $WARP_ID
     287    sprintf logfile "%s/skycell.log" $outroot
    288288    stdout $logfile
    289289    stderr $logfile
Note: See TracChangeset for help on using the changeset viewer.