IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2009, 2:51:37 PM (17 years ago)
Author:
Paul Price
Message:

Merging in branches/pap/ from r23685. Some conflicts, most notably in ippTools, but these resolved fairly simply. Only question mark is on regtool reversion, but I think I got it right. Everything builds fine.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippScripts/scripts/warp_skycell.pl

    r23430 r23688  
    175175# Run pswarp
    176176my $cmdflags;
    177 my $accept = 1;                 # Accept the skycell?
    178177my $do_stats;
    179178unless ($no_op) {
     
    215214
    216215    if ($do_stats) {
    217         # Check first for the stats file, and if the ACCEPT flag is set.
     216        # Check first for the stats file
    218217        my $outputStatsReal = $ipprc->file_resolve($outputStats);
    219218        &my_die("Couldn't find expected output file: $outputStats", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless -f $outputStatsReal;
     
    232231        chomp $cmdflags;
    233232
    234         if ($cmdflags =~ /-accept/) {
     233        my ($quality) = $cmdflags =~ /-quality (\d+)/; # Quality flag
     234
     235        if (!$quality) {
    235236            &my_die("Couldn't find expected output file: $outputImage", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputImage);
    236237            &my_die("Couldn't find expected output file: $outputMask", $warp_id, $skycell_id, $tess_dir, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
     
    249250            $command .= " -magicked" if $magicked;
    250251
    251             $command .= " -uri $outputImage" if $accept;
     252            $command .= " -uri $outputImage" if !$quality;
    252253            $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    253             $command .= " $cmdflags" if $accept;
     254            $command .= " $cmdflags";
    254255            $command .= " -hostname $host"   if defined $host;
    255256            $command .= " -dbname $dbname"   if defined $dbname;
     
    307308        $command .= " -skycell_id $skycell_id";
    308309        $command .= (" -dtime_script " . ((DateTime->now->mjd - $mjd_start) * 86400));
    309         $command .= " -code $exit_code";
     310        $command .= " -fault $exit_code";
    310311        $command .= " -dbname $dbname" if defined $dbname;
    311312        run(command => $command, verbose => $verbose);
Note: See TracChangeset for help on using the changeset viewer.