IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2005, 10:26:59 AM (21 years ago)
Author:
eugene
Message:

clean up of small accounting bugs, adding the post-subtraction ApResid

File:
1 edited

Legend:

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

    r5772 r5802  
    6666        }
    6767    }
    68     // XXX EAM : need to unflag the PSF stars which are not used to build the PSF
    69     // XXX EAM : each pmPSFtry needs to have its own mask array
     68   
     69    // use the best model:
     70    try = models->data[bestN];
    7071
    71     // keep only the selected model:
    72     try = models->data[bestN];
     72    // unset the PSFSTAR flag for stars not used for PSF model
     73    for (int i = 0; i < try->sources->n; i++) {
     74        pmSource *source = try->sources->data[i];
     75        if (try->mask->data.U8[i] & PSFTRY_MASK_FLT_FAIL) {
     76            source->mode &= ~PM_SOURCE_PSFSTAR;
     77        }
     78    }
     79
     80    // save only the best model;
    7381    pmPSF *psf = psMemCopy(try->psf);
    74     psFree (models);                             // keep only the pmPSF resulting from this analysis
     82    psFree (models);
    7583
    7684    modelName = pmModelGetType (psf->type);
Note: See TracChangeset for help on using the changeset viewer.