IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20518


Ignore:
Timestamp:
Nov 3, 2008, 3:36:11 PM (18 years ago)
Author:
Paul Price
Message:

Don't use the subtraction mask when measuring the PSF, but the appropriate image mask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadout.c

    r20516 r20518  
    338338#endif
    339339
    340     outRO->mask = (psImage*)psBinaryOp(outRO->mask, inConv->mask, "|", refConv->mask);
    341     outRO->data_exists = outCell->data_exists = outCell->parent->data_exists = true; // It'll be there soon
    342 
    343340    // Photometry is to be performed in two stages:
    344341    // 1. Measure the PSF using the PSF-matched images
     
    353350            outRO->weight = psImageCopy(outRO->weight, minuend->weight, PS_TYPE_F32);
    354351        }
     352        outRO->mask = psImageCopy(outRO->mask, minuend->mask, PS_TYPE_MASK);
    355353
    356354        pmFPAfile *photFile = psMetadataLookupPtr(NULL, config->files, "PSPHOT.INPUT");
     
    409407        outRO->weight = (psImage*)psBinaryOp(outRO->weight, inConv->weight, "+", refConv->weight);
    410408    }
     409    outRO->mask = (psImage*)psBinaryOp(outRO->mask, inConv->mask, "|", refConv->mask);
     410
    411411    outRO->data_exists = outCell->data_exists = outCell->parent->data_exists = true;
    412412
     
    434434    if (psMetadataLookupBool(&mdok, recipe, "RENORM")) {
    435435        // Statistics for renormalisation
    436         psStatsOptions renormMean = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,
     436        psStatsOptions renormMean = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe,
    437437                                                                                "RENORM.MEAN"));
    438         psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,
     438        psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe,
    439439                                                                                 "RENORM.STDEV"));
    440440        if (renormMean == PS_STAT_NONE || renormStdev == PS_STAT_NONE) {
Note: See TracChangeset for help on using the changeset viewer.