IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 22, 2008, 3:48:05 PM (18 years ago)
Author:
Paul Price
Message:

Using new JPEG recipe.

File:
1 edited

Legend:

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

    r19627 r19652  
    8282$reduction = 'DETREND' unless defined $reduction;
    8383
    84 my $recipe1 = $ipprc->reduction($reduction, 'JPEG_BIN1_RESID_' . uc($det_type)); # Recipe to use
    85 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe1;
    86 
    87 my $recipe2 = $ipprc->reduction($reduction, 'JPEG_BIN2_RESID_' . uc($det_type)); # Recipe to use
    88 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe2;
     84my $recipe = $ipprc->reduction($reduction, uc($det_type) . '_JPEG_RESID'); # Recipe to use
     85&my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe;
    8986
    9087# Look for programs we need
     
    129126    my ($statFile, $statName) = tempfile( "/tmp/$exp_tag.detresid.$det_id.$iter.stats.XXXX", UNLINK => !$save_temps );
    130127    foreach my $line (@$stdout_buf) {
    131         print $statFile $line;
     128        print $statFile $line;
    132129    }
    133130    close $statFile;
     
    143140
    144141    foreach my $line (@$stdout_buf) {
    145         $cmdflags .= " $line";
     142        $cmdflags .= " $line";
    146143    }
    147144    print "cmdflags: $cmdflags\n";
     
    173170unless ($no_op) {
    174171    # Make the jpeg for binning 1
    175     $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run
     172    $command = "$ppImage -list $list1Name $outroot"; # Command to run
     173    $command .= " -recipe PPIMAGE PPIMAGE_N";
     174    $comamnd .= " -recipe JPEG $recipe";
    176175    $command .= " -dbname $dbname" if defined $dbname;
    177176    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    184183
    185184    # Make the jpeg for binning 2
    186     $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run
     185    $command = "$ppImage -list $list2Name $outroot"; # Command to run
     186    $command .= " -recipe PPIMAGE PPIMAGE_N";
     187    $command .= " -recipe JPEG $recipe";
    187188    $command .= " -dbname $dbname" if defined $dbname;
    188189    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    530531
    531532
    532 sub value_for_flag 
     533sub value_for_flag
    533534{
    534535    my $cmdflags = shift;
     
    537538    my $value = 0.0;
    538539    if ($cmdflags =~ m|$flag|) {
    539         ($value) = $cmdflags =~ m|$flag\s+(\S+)|;
     540        ($value) = $cmdflags =~ m|$flag\s+(\S+)|;
    540541    }
    541542    $value;
Note: See TracChangeset for help on using the changeset viewer.