IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2015, 1:55:09 PM (11 years ago)
Author:
bills
Message:

Have psphotFullForce create a stats file. Process it with ppStatsFromMetadata
to look for a quality error

File:
1 edited

Legend:

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

    r37053 r37942  
    124124}
    125125
    126 # XXX: need to figure out whether this works or not
    127 # We probably want to create a specific recipe that looks at the results
    128 my $recipe_ppstats = 'WARPSTATS';
    129 my $doStats = 0;
     126my $doStats = 1;
    130127
    131128print "reduction: $reduction\n";
     
    166163
    167164my $cmdflags = "";
     165my $quality = 0;
    168166
    169167# Perform psphotFullForce
     
    182180    if ($doStats) {
    183181        $command .= " -stats $outputStats";
    184         $command .= " -recipe PPSTATS $recipe_ppstats";
    185182    }
    186183    $command .= " -F PSPHOT.OUTPUT PSPHOT.OUT.CMF.MEF";
     
    198195        }
    199196
    200         # Stats: TODO
    201197        if ($doStats) {
    202198            check_output($outputStats, 1);
    203199            my $outputStatsReal = $ipprc->file_resolve($outputStats);
    204200
    205             # measure chip stats
     201            # analyze the stats file
    206202            $command = "$ppStatsFromMetadata $outputStatsReal - WARP_SKYCELL";
    207203            ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
     
    216212            chomp $cmdflags;
    217213        }
    218         my ($quality) = $cmdflags =~ /-quality (\d+)/; # Quality flag
    219 
    220         if (!$quality) {
    221             check_output($outputSources, 1);
    222         }
     214        ($quality) = $cmdflags =~ /-quality (\d+)/; # Quality flag
     215
    223216    } else {
    224217        print "Not executing: $command\n";
    225218    }
     219}
     220
     221if (!$quality) {
     222    check_output($outputSources, 1);
    226223}
    227224
Note: See TracChangeset for help on using the changeset viewer.