IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13680


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

adjusting output names, using log filerules

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/detrend_process_exp.pl

    r13590 r13680  
    149149# Output files
    150150$workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir;
    151 my $outputRoot = $ipprc->file_prepare( "$exp_tag.detproc.$det_id", $workdir, ${$files}[0]->{path_base} );
     151my $outputRoot = $ipprc->file_prepare( "$exp_tag/$exp_tag.detproc.$det_id", $workdir, ${$files}[0]->{path_base} );
    152152my $jpeg1 = $ipprc->filename("PPIMAGE.JPEG1", $outputRoot); # Binned JPEG #1
    153153my $jpeg2 = $ipprc->filename("PPIMAGE.JPEG2", $outputRoot); # Binned JPEG #2
  • trunk/ippScripts/scripts/detrend_process_imfile.pl

    r13275 r13680  
    8989$workdir = caturi( $workdir, "$camera.$det_type.$det_id" ) if defined $workdir;
    9090
    91 my $outputRoot = $ipprc->file_prepare( "$exp_tag.detproc.$det_id", $workdir, $input_uri );
     91my $outputRoot = $ipprc->file_prepare( "$exp_tag/$exp_tag.detproc.$det_id", $workdir, $input_uri );
    9292my $outputImage = $ipprc->filename("PPIMAGE.OUTPUT", $outputRoot, $class_id);
    9393my $outputBin1 = $ipprc->filename("PPIMAGE.BIN1", $outputRoot, $class_id);
     
    150150    my $exit_code = shift; # Exit code to add
    151151
    152     warn($msg);
     152    carp($msg);
    153153    if ($det_id and $exp_tag and $class_id and not $no_update) {
    154154        my $command = "$dettool -addprocessedimfile -det_id $det_id -exp_tag $exp_tag -class_id $class_id -code $exit_code";
  • 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
  • trunk/ippconfig/isp/camera.config

    r13630 r13680  
    140140
    141141   PPSIM.OUTPUT          OUTPUT {OUTPUT}.fits         IMAGE     FPA        TRUE      NONE
     142
     143   LOG.IMFILE            OUTPUT {OUTPUT}.{CHIP.NAME}.log TEXT   CHIP       TRUE      NONE
     144   LOG.EXP               OUTPUT {OUTPUT}.log          TEXT      FPA        TRUE      NONE
    142145END
    143146
Note: See TracChangeset for help on using the changeset viewer.