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

    r19261 r19652  
    5757
    5858if ($redirect) {
    59     my $logDest = $ipprc->filename("LOG.EXP", $outroot, "NONE") 
     59    my $logDest = $ipprc->filename("LOG.EXP", $outroot, "NONE")
    6060        or &my_die("Missing entry in file rules", $det_id, $exp_id, $PS_EXIT_CONFIG_ERROR);
    6161    $ipprc->redirect_output($logDest);
     
    6565$reduction = 'DETREND' unless defined $reduction;
    6666
    67 my $recipe1 = $ipprc->reduction($reduction, 'JPEG_BIN1_IMAGE_' . uc($det_type)); # Recipe to use
    68 &my_die("Unrecognised detrend type: $det_type", $det_id, $exp_id, $PS_EXIT_PROG_ERROR) unless defined $recipe1;
    69 
    70 my $recipe2 = $ipprc->reduction($reduction, 'JPEG_BIN2_IMAGE_' . uc($det_type)); # Recipe to use
    71 &my_die("Unrecognised detrend type: $det_type", $det_id, $exp_id, $PS_EXIT_PROG_ERROR) unless defined $recipe2;
     67my $recipe = $ipprc->reduction($reduction, uc($det_type) . '_JPEG_IMAGE'); # Recipe to use
     68&my_die("Unrecognised detrend type: $det_type", $det_id, $exp_id, $PS_EXIT_PROG_ERROR) unless defined $recipe;
    7269
    7370# values to extract from output metadata and the stats to calculate
     
    144141unless ($no_op) {
    145142    # Make the jpeg for binning 1
    146     $command = "$ppImage -list $list1Name $outroot -recipe PPIMAGE $recipe1"; # Command to run
     143    $command = "$ppImage -list $list1Name $outroot"; # Command to run
     144    $command .= " -recipe PPIMAGE PPIMAGE_N";
     145    $command .= " -recipe JPEG $recipe";
    147146    $command .= " -dbname $dbname" if defined $dbname;
    148147    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    155154
    156155    # Make the jpeg for binning 2
    157     $command = "$ppImage -list $list2Name $outroot -recipe PPIMAGE $recipe2"; # Command to run
     156    $command = "$ppImage -list $list2Name $outroot"; # Command to run
     157    $command .= " -recipe PPIMAGE PPIMAGE_N";
     158    $command .= " -recipe JPEG $recipe";
    158159    $command .= " -dbname $dbname" if defined $dbname;
    159160    ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    200201        $command .= " -exp_id $exp_id";
    201202        $command .= " -code $exit_code";
    202         $command .= " -path_base $outroot";
     203        $command .= " -path_base $outroot";
    203204        $command .= " -dbname $dbname" if defined $dbname;
    204205        system ($command);
Note: See TracChangeset for help on using the changeset viewer.