IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 25, 2010, 3:22:33 PM (16 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20100823

File:
1 edited

Legend:

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

    r28253 r29552  
    6868
    6969    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
    70     psMetadataAddU8(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad);
     70    psMetadataAddImageMask(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad);
    7171
    7272    psImage *binned = psphotModelBackgroundReadoutNoFile(ro, config); // Binned background model
     
    153153    int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads
    154154
    155     if (!pmReadoutMaskNonfinite(readout, maskVal)) {
     155    // Replaced pmReadoutMaskNonfinite with pmReadoutMaskInvalid (tests for already masked pixels)
     156    if (!pmReadoutMaskInvalid(readout, maskVal, maskBad)) {
    156157        psError(psErrorCodeLast(), false, "Unable to mask non-finite pixels in readout.");
    157158        return false;
     
    319320                }
    320321            } else {
     322                // we need to register the FWHM values for use downstream
     323                pmSubtractionSetFWHMs(options->inputSeeing->data.F32[index], options->targetSeeing);
     324
    321325                // Scale the input parameters
    322326                psVector *widthsCopy = psVectorCopy(NULL, widths, PS_TYPE_F32); // Copy of kernel widths
    323                 if (scale && !pmSubtractionParamsScale(&size, &footprint, widthsCopy,
    324                                                        options->inputSeeing->data.F32[index],
    325                                                        options->targetSeeing, scaleRef, scaleMin, scaleMax)) {
     327                if (scale && !pmSubtractionParamsScale(&size, &footprint, widthsCopy, scaleRef, scaleMin, scaleMax)) {
    326328                    psError(psErrorCodeLast(), false, "Unable to scale kernel parameters");
    327329                    psFree(fake);
Note: See TracChangeset for help on using the changeset viewer.