IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2010, 2:45:13 PM (16 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/pstamp/src/ppstampMakeStamp.c

    r28882 r29515  
    233233    int status = false;
    234234
    235     pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT");
     235    pmFPAfile *output;
     236    if (!options->stage || (strcmp(options->stage, "diff") != 0)) {
     237        output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT");
     238    } else {
     239        output = psMetadataLookupPtr(NULL, config->files, "PPSTAMP.OUTPUT.DIFF");
     240    }
    236241    if (!output) {
    237242        psError(PS_ERR_UNKNOWN, false, "Can't find output data\n");
     
    674679static bool setMaskedToNAN(pmConfig *config, psImage *image, psImage *mask, psImage *variance)
    675680{
     681#ifdef notdef
    676682    bool status;
    677683    psMetadata *masks = psMetadataLookupMetadata(&status, config->recipes, "MASKS");
     
    719725        }
    720726    }
    721     fprintf(stderr, "excised %ld masked pixels\n", numExcised);
     727#endif
     728
     729    long numCensored;
     730    if (!pmCensorMasked(config, image, mask, variance, &numCensored)) {
     731        psError(PS_ERR_UNKNOWN, false, "Failed to censor masked pixels.\n");
     732        return false;
     733    }
     734
     735    // XXX: this shouldn't be a fprintf
     736    fprintf(stderr, "Censored %ld masked pixels\n", numCensored);
    722737
    723738    return true;
Note: See TracChangeset for help on using the changeset viewer.