IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8937


Ignore:
Timestamp:
Sep 25, 2006, 11:07:51 AM (20 years ago)
Author:
Paul Price
Message:

Split PPIMAGE_J into 2 recipes to handle both binnings

File:
1 edited

Legend:

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

    r8763 r8937  
    3232    and defined $det_type;
    3333
    34 use constant RECIPE => 'PPIMAGE_J'; # Recipe to use for ppImage to make JPEGs
     34use constant RECIPE1 => 'PPIMAGE_J1'; # Recipe to use for ppImage to make JPEGs
     35use constant RECIPE2 => 'PPIMAGE_J2'; # Recipe to use for ppImage to make JPEGs
    3536
    3637# The expected mean, as a function of detrend type
     
    112113
    113114# Output products --- need to synch with the camera configuration!
    114 my $jpeg1Name = $outputName . ".b1.jpeg"; # Binned JPEG #1
    115 my $jpeg2Name = $outputName . ".b2.jpeg"; # Binned JPEG #2
     115my $jpeg1Name = $outputName . ".b1.jpg"; # Binned JPEG #1
     116my $jpeg2Name = $outputName . ".b2.jpg"; # Binned JPEG #2
    116117
    117118# Make the jpeg for binning 1
    118119{
    119     my $command = "$ppImage -list $list1Name $outputName -recipe PPIMAGE " . RECIPE; # Command to run
    120     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    121         run(command => $command, verbose => 1);
    122 #    die "Unable to find expected output file: $jpeg1Name\n" if not -f $jpeg1Name;
     120    my $command = "$ppImage -list $list1Name $outputName -recipe PPIMAGE " . RECIPE1; # Command to run
     121    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     122        run(command => $command, verbose => 1);
     123    die "Unable to find expected output file: $jpeg1Name\n" if not -f $jpeg1Name;
    123124}
    124125
    125126# Make the jpeg for binning 2
    126127{
    127     my $command = "$ppImage -list $list2Name $outputName -recipe PPIMAGE " . RECIPE; # Command to run
    128     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    129         run(command => $command, verbose => 1);
    130 #    die "Unable to find expected output file: $jpeg2Name\n" if not -f $jpeg2Name;
     128    my $command = "$ppImage -list $list2Name $outputName -recipe PPIMAGE " . RECIPE2; # Command to run
     129    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     130        run(command => $command, verbose => 1);
     131    die "Unable to find expected output file: $jpeg2Name\n" if not -f $jpeg2Name;
    131132}
    132133
Note: See TracChangeset for help on using the changeset viewer.