IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16208


Ignore:
Timestamp:
Jan 23, 2008, 2:13:10 PM (18 years ago)
Author:
eugene
Message:

calling built-in dirname and mkdir

Location:
trunk/ippTasks
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/chip.pro

    r16195 r16208  
    150150    stdout $logfile
    151151    stderr $logfile
     152    dirname $logfile -var outpath
     153    mkdir $outpath
    152154
    153155    $run = chip_imfile.pl --exp_id $EXP_ID --chip_id $CHIP_ID --class_id $CLASS_ID --exp_tag $EXP_TAG --uri $URI --camera $CAMERA --outroot $outroot
  • trunk/ippTasks/detrend.norm.pro

    r16195 r16208  
    157157
    158158    # specify choice of local or remote host based on camera and chip (class_id)
    159     set.host.for.camera $camera FPA
     159    set.host.for.camera $CAMERA FPA
    160160
    161161    # set workdir (interpolate host; see camera.pro for examples)
     
    171171    stdout $logfile
    172172    stderr $logfile
     173    dirname $logfile -var outpath
     174    mkdir $outpath
    173175
    174176    $run = detrend_norm_calc.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --outroot $outroot
     
    274276
    275277    # specify choice of local or remote host based on camera and chip (class_id)
    276     set.host.for.camera $camera $class_id
     278    set.host.for.camera $CAMERA $CLASS_ID
    277279
    278280    # set workdir (interpolate host; see camera.pro for examples)
     
    288290    stdout $logfile
    289291    stderr $logfile
     292    dirname $logfile -var outpath
     293    mkdir $outpath
    290294
    291295    $run = detrend_norm_apply.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --value $NORM --input_uri $URI --camera $CAMERA --det_type $DET_TYPE --outroot $outroot
     
    388392
    389393    # specify choice of local or remote host based on camera and chip (class_id)
    390     set.host.for.camera $camera FPA
     394    set.host.for.camera $CAMERA FPA
    391395
    392396    # set workdir (interpolate host; see camera.pro for examples)
     
    402406    stdout $logfile
    403407    stderr $logfile
     408    dirname $logfile -var outpath
     409    mkdir $outpath
    404410
    405411    $run = detrend_norm_exp.pl --det_id $DET_ID --iteration $ITERATION --camera $CAMERA --det_type $DET_TYPE  --outroot $outroot
  • trunk/ippTasks/detrend.process.pro

    r16195 r16208  
    148148
    149149    # specify choice of local or remote host based on camera and chip (class_id)
    150     set.host.for.camera $camera $class_id
     150    set.host.for.camera $CAMERA $CLASS_ID
    151151
    152152    # see chip.pro for examples
     
    165165    stdout $logfile
    166166    stderr $logfile
     167    dirname $logfile -var outpath
     168    mkdir $outpath
    167169
    168170    $run = detrend_process_imfile.pl --det_id $DET_ID --exp_id $EXP_ID --det_type $DET_TYPE --class_id $CLASS_ID --exp_tag $EXP_TAG --input_uri $URI --camera $CAMERA --outroot $outroot
     
    270272
    271273    # specify choice of local or remote host based on camera and chip (class_id)
    272     set.host.for.camera $camera FPA
     274    set.host.for.camera $CAMERA FPA
    273275
    274276    # set workdir (interpolate host; see camera.pro for examples)
     
    287289    stdout $logfile
    288290    stderr $logfile
     291    dirname $logfile -var outpath
     292    mkdir $outpath
    289293
    290294    $run = detrend_process_exp.pl --det_id $DET_ID --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --outroot $outroot
  • trunk/ippTasks/detrend.reject.pro

    r16195 r16208  
    126126
    127127    # specify choice of local or remote host based on camera and chip (class_id)
    128     set.host.for.camera $camera FPA
     128    set.host.for.camera $CAMERA FPA
    129129
    130130    # set workdir (interpolate host; see camera.pro for examples)
     
    140140    stdout $logfile
    141141    stderr $logfile
     142    dirname $logfile -var outpath
     143    mkdir $outpath
    142144
    143145    $run = detrend_reject_exp.pl --det_id $DET_ID --iteration $ITERATION --det_type $DET_TYPE --camera $CAMERA --outroot $outroot
  • trunk/ippTasks/detrend.resid.pro

    r16195 r16208  
    148148
    149149    # specify choice of local or remote host based on camera and chip (class_id)
    150     set.host.for.camera $camera $class_id
     150    set.host.for.camera $CAMERA $CLASS_ID
    151151
    152152    # set workdir (interpolate host; see camera.pro for examples)
     
    165165    stdout $logfile
    166166    stderr $logfile
     167    dirname $logfile -var outpath
     168    mkdir $outpath
    167169
    168170    $run = detrend_resid.pl --det_id $DET_ID --iteration $ITERATION --exp_id $EXP_ID --exp_tag $EXP_TAG --class_id $CLASS_ID --det_type $DET_TYPE --detrend $DET_URI --input_uri $URI --camera $CAMERA --mode $MODE --outroot $outroot
     
    272274
    273275    # specify choice of local or remote host based on camera and chip (class_id)
    274     set.host.for.camera $camera FPA
     276    set.host.for.camera $CAMERA FPA
    275277
    276278    # set workdir (interpolate host; see camera.pro for examples)
     
    289291    stdout $logfile
    290292    stderr $logfile
     293    dirname $logfile -var outpath
     294    mkdir $outpath
    291295
    292296    $run = detrend_reject_imfile.pl --det_id $DET_ID --iteration $ITERATION --exp_id $EXP_ID --exp_tag $EXP_TAG --det_type $DET_TYPE --camera $CAMERA --outroot $outroot
  • trunk/ippTasks/detrend.stack.pro

    r16195 r16208  
    128128
    129129    # specify choice of local or remote host based on camera and chip (class_id)
    130     set.host.for.camera $camera $class_id
     130    set.host.for.camera $CAMERA $CLASS_ID
    131131
    132132    # set workdir (interpolate host; see camera.pro for examples)
     
    145145    stdout $logfile
    146146    stderr $logfile
     147    dirname $logfile -var outpath
     148    mkdir $outpath
    147149
    148150    $run = detrend_stack.pl --det_id $DET_ID --iteration $ITERATION --class_id $CLASS_ID --det_type $DET_TYPE --camera $CAMERA --outroot $outroot
  • trunk/ippTasks/pantasks.pro

    r16195 r16208  
    2323# is only used if DB:n is 0
    2424$DB:n = 0
     25
     26if ($NEBULOUS)
     27 $default_host     = anyhost
     28 $default_volume   = none
     29 # $default_host     = ipp004
     30 # $workdir_template = neb:///@HOST@-v0
     31 # $default_volume   = ipp004-v0
     32 # $volume_template  =
     33else
     34 $default_host     = anyhost
     35end
    2536
    2637# user function to add databases by name (avoids duplicates)
     
    359370
    360371  if ("$host" == "NULL")
    361     strsub $template @HOST@ $default -var $$varname
     372    strsub $template @HOST@ $default -var $varname
    362373  else
    363     strsub $template @HOST@ $host -var $$varname
     374    strsub $template @HOST@ $host -var $varname
    364375  end
    365376end
     
    392403  end
    393404
    394   strsub $template @HOST@ $host -var $$varname
    395 end
    396 
    397 macro set.host.by.camera
     405  strsub $template @HOST@ $host -var $varname
     406end
     407
     408macro set.host.for.camera
    398409  if ($0 != 3)
    399     echo "USAGE: set.host.by.camera (camera) (class_id)"
     410    echo "USAGE: set.host.for.camera (camera) (class_id)"
    400411    break
    401412  end
     
    407418
    408419  # missing camera and/or chiphosts table results in host = NULL
    409   book getword chiphosts $1 $2 -var $host
     420  book getword chiphosts $1 $2 -var host
    410421
    411422  if ("$host" == "NULL")
  • trunk/ippTasks/register.pro

    r16195 r16208  
    159159    # neb:///ipp004-vol0/gpc1/20080130
    160160
    161     ## generate output log based on filerule
     161    ## generate output logfile name and convert URI to a PATH
    162162    sprintf logfile "%s/%s/%s.%s.reg.log" $WORKDIR $EXP_TAG $EXP_TAG $TMP_CLASS_ID
    163163    $logfile = `ipp_datapath.pl $logfile`
     
    165165    stdout $logfile
    166166    stderr $logfile
     167    dirname $logfile -var outpath
     168    mkdir $outpath
     169
     170    # add mkdir back here?
     171    # or make part of reigster_imfile.pl?
    167172
    168173    $run = register_imfile.pl --exp_id $EXP_ID --tmp_class_id $TMP_CLASS_ID --tmp_exp_name $TMP_EXP_NAME --uri $URI
     
    281286    stdout $logfile
    282287    stderr $logfile
     288    dirname $logfile -var outpath
     289    mkdir $outpath
    283290
    284291    $run = register_exp.pl --exp_id $EXP_ID --exp_tag $EXP_TAG
  • trunk/ippTasks/summit.copy.pro

    r16195 r16208  
    279279        book getword pzPendingImfile $pageName camera -var $CAMERA
    280280
    281         set.host.by.camera $CAMERA $CLASS_ID
     281        set.host.for.camera $CAMERA $CLASS_ID
    282282        host        anyhost
    283283
Note: See TracChangeset for help on using the changeset viewer.