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_norm_exp.pl

    r19261 r19652  
    5959# Recipes to use based on reduction class
    6060$reduction = 'DETREND' unless defined $reduction;
    61 
    62 my $recipe1 = $ipprc->reduction($reduction, 'JPEG_BIN1_IMAGE_' . uc($det_type)); # Recipe to use
    63 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe1;
    64 
    65 my $recipe2 = $ipprc->reduction($reduction, 'JPEG_BIN2_IMAGE_' . uc($det_type)); # Recipe to use
    66 &my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe2;
     61my $recipe = $ipprc->reduction($reduction, uc($det_type) . '_JPEG_IMAGE');
     62&my_die("Unrecognised detrend type: $det_type", $det_id, $iter, $PS_EXIT_PROG_ERROR) unless defined $recipe;
    6763
    6864# values to extract from output metadata and the stats to calculate
     
    9490    $command  = "$dettool -normalizedimfile"; # Command to run
    9591    $command .= " -det_id $det_id";
    96     $command .= " -iteration $iter"; 
     92    $command .= " -iteration $iter";
    9793    $command .= " -dbname $dbname" if defined $dbname;
    9894    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    140136unless ($no_op) {
    141137    # Make the jpeg for binning 1
    142     $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run
     138    $command = "$ppImage -list $list1Name $outroot"; # Command to run
     139    $command .= " -recipe PPIMAGE PPIMAGE_N";
     140    $command .= " -recipe JPEG $recipe";
    143141    $command .= " -dbname $dbname" if defined $dbname;
    144142    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    147145
    148146    # Make the jpeg for binning 2
    149     $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run
     147    $command = "$ppImage -list $list2Name $outroot"; # Command to run
     148    $command .= " -recipe PPIMAGE PPIMAGE_N";
     149    $command .= " -recipe JPEG $recipe";
    150150    $command .= " -dbname $dbname" if defined $dbname;
    151151    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    188188        $command .= " -det_id $det_id";
    189189        $command .= " -iteration $iter";
    190         $command .= " -path_base $outroot ";
     190        $command .= " -path_base $outroot ";
    191191        $command .= " -code $exit_code";
    192192        $command .= " -dbname $dbname" if defined $dbname;
Note: See TracChangeset for help on using the changeset viewer.