IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 31, 2008, 4:05:48 PM (18 years ago)
Author:
Paul Price
Message:

Adding variance map renormalisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackLoop.c

    r20467 r20494  
    10221022    }
    10231023
     1024    if (psMetadataLookupBool(&mdok, recipe, "RENORM")) {
     1025        // Statistics for renormalisation
     1026        psStatsOptions renormMean = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,
     1027                                                                                "RENORM.MEAN"));
     1028        psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,
     1029                                                                                 "RENORM.STDEV"));
     1030        int renormNum = psMetadataLookupS32(&mdok, recipe, "RENORM.NUM"); // Number of samples
     1031        float renormWidth = psMetadataLookupS32(&mdok, recipe, "RENORM.WIDTH"); // Width of Gaussian phot
     1032        psMaskType maskValue = pmConfigMaskGet("BLANK", config); // Bits to mask
     1033        if (!pmReadoutWeightRenormPhot(outRO, maskValue, renormNum, renormWidth,
     1034                                       renormMean, renormStdev, NULL)) {
     1035            psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances.");
     1036            psFree(outRO);
     1037            return false;
     1038        }
     1039    }
     1040
    10241041    if (psMetadataLookupBool(&mdok, recipe, "PHOTOMETRY")) {
    10251042        psTrace("ppStack", 1, "Photometering stacked image....\n");
Note: See TracChangeset for help on using the changeset viewer.