IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 13, 2005, 6:43:44 AM (21 years ago)
Author:
eugene
Message:

substantial work on ensemble PSF fitting, better functions for evaluation, overall code cleanups

File:
1 edited

Legend:

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

    r5718 r5772  
    1414    psTimerStart ("psphot");
    1515
    16     // this should be added to the PM_SOURCE flags:
    17     int PM_SOURCE_BLEND = PM_SOURCE_OTHER + 1;
     16    float FRACTION = psMetadataLookupF32 (&status, config, "DEBLEND_PEAK_FRACTION");
     17    if (!status) FRACTION = 0.25;
    1818
    19     float FRACTION = psMetadataLookupF32 (&status, config, "DEBLEND_PEAK_FRACTION");
    2019    float NSIGMA   = psMetadataLookupF32 (&status, config, "DEBLEND_SKY_NSIGMA");
     20    if (!status) NSIGMA = 5.0;
     21
    2122    float minThreshold = NSIGMA*sky->sampleStdev;
    22     fprintf (stderr, "min threshold: %f\n", minThreshold);
    2323
    2424    // we need sources spatially-sorted to find overlaps
     
    4343        source = sources->data[N];
    4444
    45         if (source->type == PM_SOURCE_BLEND) continue;
     45        if (source->mode & PM_SOURCE_BLEND) continue;
    4646
    4747        overlap->n = 0;
     
    119119                             );
    120120
    121                     testSource->type = PM_SOURCE_BLEND;
     121                    testSource->mode |= PM_SOURCE_BLEND;
    122122                    Nblend ++;
    123123                    j = xv->n;
Note: See TracChangeset for help on using the changeset viewer.