IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28362


Ignore:
Timestamp:
Jun 16, 2010, 2:28:40 PM (16 years ago)
Author:
Paul Price
Message:

psphot doesn't produce stats files.

File:
1 edited

Legend:

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

    r28360 r28362  
    125125    $command .= " -variance $inputVariance";
    126126    $command .= " -psf $inputPSF";
    127     $command .= " -stats $outputStats";
     127#    $command .= " -stats $outputStats";
    128128    $command .= " -threads $threads" if defined $threads;
    129129    $command .= " -recipe PSPHOT $recipe_psphot";
     
    140140        unless ($success) {
    141141            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    142             &my_die("Unable to perform ppSub: $error_code", $diff_phot_id, $skycell_id, $error_code);
    143         }
    144 
     142            &my_die("Unable to perform psphot: $error_code", $diff_phot_id, $skycell_id, $error_code);
     143        }
     144
     145        if (0) {                # psphot doesn't produce a stats file
    145146        my $outputStatsReal = $ipprc->file_resolve($outputStats);
    146147        &my_die("Couldn't find expected output file: $outputStats", $diff_phot_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal);
     
    161162            $quality = $1;
    162163        }
     164        }
    163165
    164166        if (!$quality) {
     
    171173
    172174# Do reverse photometry
    173 {
     175if ($bothways) {
    174176    my ($tempFile, $tempName) = tempfile( "/tmp/diffphot.$diff_phot_id.$skycell_id.XXXX",
    175177                                          UNLINK => !$save_temps, SUFFIX => '.fits' );
     
    182184            unless ($success) {
    183185                $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    184                 &my_die("Unable to perform ppSub: $error_code", $diff_phot_id, $skycell_id, $error_code);
     186                &my_die("Unable to perform ppArith: $error_code", $diff_phot_id, $skycell_id, $error_code);
    185187            }
    186188            &my_die("Couldn't find expected output file: $tempName", $diff_phot_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($tempName);
     
    200202    $command .= " -variance $inputVariance";
    201203    $command .= " -psf $inputPSF";
    202     $command .= " -stats $outputStats";
     204#    $command .= " -stats $outputStats";
    203205    $command .= " -threads $threads" if defined $threads;
    204206    $command .= " -recipe PSPHOT $recipe_psphot";
     
    215217        unless ($success) {
    216218            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
    217             &my_die("Unable to perform ppSub: $error_code", $diff_phot_id, $skycell_id, $error_code);
    218         }
    219 
     219            &my_die("Unable to perform psphot: $error_code", $diff_phot_id, $skycell_id, $error_code);
     220        }
     221
     222        if (0) {                # psphot doesn't produce a stats file
    220223        my $outputStatsReal = $ipprc->file_resolve($outputStats);
    221224        &my_die("Couldn't find expected output file: $outputStats", $diff_phot_id, $skycell_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputStatsReal);
     
    235238        if ($cmdflags =~ /-quality (\d+)/) {
    236239            $quality = $1;
     240        }
    237241        }
    238242
Note: See TracChangeset for help on using the changeset viewer.