IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 12, 2013, 3:10:54 PM (13 years ago)
Author:
bills
Message:

for now a source is a star if extModel == NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bills_branches/bills_201312/psModules/src/objects/pmSourceIO_CFF.c

    r36375 r36389  
    123123        source->type = PM_SOURCE_TYPE_STAR; // XXX this should be added to the flags
    124124
    125         // XXX we can set this in general, but for a specific image, we need to weed out SATSTARS
     125        // XXX we can set this in general, but for a specific image, we need to weed out SATSTARS and
     126        // stars that are masked
    126127        if (psfStar) {
    127128            source->tmpFlags |= PM_SOURCE_TMPF_CANDIDATE_PSFSTAR;
     
    246247        psS32 modelType = 0;
    247248        bool fitGalaxy = false;
    248         bool psfStar = false;
     249        bool psfStar = (source->mode & PM_SOURCE_MODE_PSFSTAR) ? true : false;
    249250        psF32 sersicIndex = 0;
    250         if (source->modelFits == NULL) {
     251        // For now only perform galaxy fits on extended objects
     252        if (source->modelEXT == NULL) {
    251253            pmModel *model = source->modelPSF;
    252254            if (model == NULL) continue;
     
    260262            yPos = model->params->data.F32[PM_PAR_YPOS];
    261263            flux = source->psfFlux;
    262             psfStar = (source->mode & PM_SOURCE_MODE_PSFSTAR) ? true : false;
    263264            rMajor = 0;
    264265            rMinor = 0;
Note: See TracChangeset for help on using the changeset viewer.