IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32469


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.

Location:
trunk
Files:
3 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
  • trunk/ippTools/src/warptool.c

    r32421 r32469  
    20512051        // magicked is only an argument for for -tofullskyfile
    20522052        PXOPT_LOOKUP_S64(magicked, config->args, "-set_magicked", false, false);
     2053        PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false);
    20532054        if (magicked) {
    20542055            psStringAppend(&set_magicked_skyfile, "\n , warpSkyfile.magicked = %" PRId64, magicked);
    20552056            psStringAppend(&set_magicked_run, "\n,  warpRun.magicked = %" PRId64, magicked);
    20562057        }
     2058        if (quality) {
     2059          psStringAppend(&set_magicked_skyfile, "\n , warpSkyfile.quality = %"PRId16, quality);
     2060        }
    20572061    } else if (!strcmp(data_state, "cleaned") || !strcmp(data_state, "purged")) {
    20582062        // if magicked is currently nonzero set it to -1
  • trunk/ippTools/src/warptoolConfig.c

    r32421 r32469  
    398398    psMetadataAddStr(tofullskyfileArgs, PS_LIST_TAIL, "-skycell_id", 0, "skycell ID to update", NULL);
    399399    psMetadataAddS64(tofullskyfileArgs, PS_LIST_TAIL, "-set_magicked",  0, "new value for magicked", 0);
    400 
     400    psMetadataAddS16(tofullskyfileArgs, PS_LIST_TAIL, "-set_quality", 0, "new value for quality", 0);
     401   
    401402    // -updateskyfile
    402403    psMetadata *updateskyfileArgs = psMetadataAlloc();
Note: See TracChangeset for help on using the changeset viewer.