IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 4, 2014, 1:20:33 PM (12 years ago)
Author:
bills
Message:

delete guess psf model if the source has no unmasked pixels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFitSourcesLinear.c

    r34418 r37555  
    263263            }
    264264        }
     265        if (modelSum == 0 ||  maskedSum == 0) {
     266            // no pixels at all drop the modelPSF (probably only an issue for external sources
     267            // which are created from a fake peak (full force))
     268            psFree(source->modelPSF);
     269            continue;
     270        }
    265271        if (modelSum < 0.5) continue; // skip sources with no model constraint (somewhat arbitrary limit)
    266272        if (modelSum < 0.8) {
Note: See TracChangeset for help on using the changeset viewer.