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/psphotChoosePSF.c

    r5058 r5772  
    1313    // array to store candidate PSF stars
    1414    int NSTARS = psMetadataLookupS32 (&status, config, "PSF_MAX_NSTARS");
    15     if (!status) NSTARS = sources->n;
     15    if (!status) NSTARS = PS_MIN (sources->n, 200);
     16
    1617    stars = psArrayAlloc (sources->n);
    1718    stars->n = 0;
     
    2021    for (int i = 0; (i < sources->n) && (stars->n < NSTARS); i++) {
    2122        pmSource *source = sources->data[i];
    22         if (source->type != PM_SOURCE_PSFSTAR) continue;
    23         psArrayAdd (stars, 200, source);
     23        if (source->mode & PM_SOURCE_PSFSTAR) psArrayAdd (stars, 200, source);
    2424    }
    25     psTrace (".psphot.pspsf", 3, "selected candidate %d PSF objects\n", stars->n);
     25    psLogMsg ("psphot.pspsf", 3, "selected candidate %d PSF objects\n", stars->n);
    2626
    2727    // get the fixed PSF fit radius
     
    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
    6870
    6971    // keep only the selected model:
Note: See TracChangeset for help on using the changeset viewer.