IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2006, 8:30:16 AM (21 years ago)
Author:
eugene
Message:

API cleanup, removed old test files, some re-organization, changed FLT/GAL to EXT

File:
1 edited

Legend:

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

    r5986 r5993  
    22
    33// try PSF models and select best option
     4pmPSF *psphotChoosePSF (psMetadata *config, psArray *sources, psStats *skystats) {
    45
    5 pmPSF *psphotChoosePSF (psMetadata *config, psArray *sources, psStats *skystats)
    6 {
    76    bool            status;
    87    char           *modelName;
     
    5554    }
    5655    psFree (iter);
    57     // psFree (list); XXX EAM - is list freed with iter?
     56    // psFree (list); XXX is list freed with iter?
    5857    psFree (stars);
    5958
     
    7877    for (int i = 0; i < try->sources->n; i++) {
    7978        pmSource *source = try->sources->data[i];
    80         if (try->mask->data.U8[i] & PSFTRY_MASK_FLT_FAIL) {
     79        if (try->mask->data.U8[i] & PSFTRY_MASK_EXT_FAIL) {
    8180            source->mode &= ~PM_SOURCE_PSFSTAR;
    8281        }
     
    8685    pmPSF *psf = psMemCopy(try->psf);
    8786    psFree (models);
     87
     88    psMetadataAdd (config, PS_LIST_TAIL, "NPSFSTAR", PS_DATA_S32 | PS_META_REPLACE, "number of stars used to make PSF", psf->nPSFstars);
    8889
    8990    modelName = pmModelGetType (psf->type);
Note: See TracChangeset for help on using the changeset viewer.