IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17236


Ignore:
Timestamp:
Mar 30, 2008, 8:40:06 AM (18 years ago)
Author:
eugene
Message:

trigger extended source fit based on source size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080324/psphot/src/psphotBlendFit.c

    r16820 r17236  
    4040        // skip non-astronomical objects (very likely defects)
    4141        if (source->mode &  PM_SOURCE_MODE_BLEND) continue;
     42        if (source->mode &  PM_SOURCE_MODE_CR_LIMIT) continue;
    4243        if (source->type == PM_SOURCE_TYPE_DEFECT) continue;
    4344        if (source->type == PM_SOURCE_TYPE_SATURATED) continue;
     
    7980        // XXX re-consider conditions under which the source has EXT fit:
    8081        // I should try EXT if the source size measurement says it is large
    81         if (psphotFitBlend (readout, source, psf, maskVal)) {
    82             psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
    83             Npsf ++;
    84             continue;
    85         }
    86         if (psphotFitBlob (readout, source, sources, psf, maskVal)) {
    87             psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source->moments->x, source->moments->y);
    88             Next ++;
    89             continue;
    90         }
     82        if (source->mode & PM_SOURCE_MODE_EXT_LIMIT) {
     83            if (psphotFitBlob (readout, source, sources, psf, maskVal)) {
     84                source->type = PM_SOURCE_TYPE_EXTENDED;
     85                psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source->moments->x, source->moments->y);
     86                Next ++;
     87                continue;
     88            }
     89        } else {
     90            if (psphotFitBlend (readout, source, psf, maskVal)) {
     91                source->type = PM_SOURCE_TYPE_STAR;
     92                psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
     93                Npsf ++;
     94                continue;
     95            }
     96        }
    9197
    9298        psTrace ("psphot", 5, "source at %7.1f, %7.1f failed", source->moments->x, source->moments->y);
Note: See TracChangeset for help on using the changeset viewer.