IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 30, 2011, 1:30:50 PM (15 years ago)
Author:
watersc1
Message:

Bug fix to prevent updated warp skycells with no PSF from being accepted as quality = 0.

File:
1 edited

Legend:

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

    r32379 r32469  
    331331            }
    332332        }
    333 
     333        print "Quality: $quality\n";
    334334        unless ($no_update) {
    335335            # XXX change -tess_id to -tess_dir when db is updated
     
    356356        }
    357357    } else {
     358
     359        my $quality = 0;
     360
     361        unless ($ipprc->file_exists($outputPSF)) {
     362            $quality = 8006; # bad data.
     363        }
     364#         if (!$quality) {
     365#             check_output($outputImage, 0);
     366#             check_output($outputMask, 0);
     367#             check_output($outputWeight, 0);
     368#             check_output($outputSources, 1);
     369#             check_output($outputPSF, 1) if metadataLookupBool($recipe, 'PSF')  ;
     370#         }
     371        print "Quality: $quality\n";
     372
    358373        # $run_state eq 'update'
    359374        unless ($no_update) {
     
    362377            $command .= " -skycell_id $skycell_id";
    363378            $command .= " -set_magicked $magicked" if $magicked;
     379            $command .= " -set_quality $quality" if $quality;
    364380            $command .= " -dbname $dbname"   if defined $dbname;
    365381
Note: See TracChangeset for help on using the changeset viewer.