IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 32469 for trunk/ippTools


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/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.