IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2006, 3:54:38 PM (20 years ago)
Author:
Paul Price
Message:

Adding binned images, so that we can create JPEGs at the next step.

File:
1 edited

Legend:

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

    r9166 r9169  
    6363my $outputImage = $outputRoot . '.' . $class_id . '.fits';
    6464my $outputStats = $outputRoot . '.' . $class_id . '.stats';
     65my $outputBin1 = $outputRoot . '.' . $class_id . '.b1.fits';
     66my $outputBin2 = $outputRoot . '.' . $class_id . '.b2.fits';
    6567
    6668# Run ppImage
     
    7375    die "Couldn't find expected output file: $outputImage\n" if not -f $outputImage;
    7476    die "Couldn't find expected output file: $outputStats\n" if not -f $outputStats;
     77    die "Couldn't find expected output file: $outputBin1\n" if not -f $outputBin1;
     78    die "Couldn't find expected output file: $outputBin2\n" if not -f $outputBin2;
    7579}
    7680
     
    9195# Take off the absolute path, to stuff into the database
    9296$outputImage = File::Spec->abs2rel( $outputImage, $ipprc->workdir() );
     97$outputBin1 = File::Spec->abs2rel( $outputBin1, $ipprc->workdir() );
     98$outputBin2 = File::Spec->abs2rel( $outputBin2, $ipprc->workdir() );
    9399
    94100# Add the processed file to the database
    95101unless ($no_update) {
    96102    my $command = "$dettool -addprocessedimfile -det_id $det_id -exp_tag $exp_tag " .
    97         "-class_id $class_id -recip $recipe -uri $outputImage"; # Command to run dettool
     103        "-class_id $class_id -recip $recipe -uri $outputImage -b1_uri $outputBin1 " .
     104        "-b2_uri $outputBin2"; # Command to run dettool
    98105    $command .= " -bg " . $stats->bg_mean();
    99106    if (defined($stats->bg_stdev())) {
Note: See TracChangeset for help on using the changeset viewer.