IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26262


Ignore:
Timestamp:
Nov 22, 2009, 3:01:37 PM (16 years ago)
Author:
eugene
Message:

allow robust for large N_psf

File:
1 edited

Legend:

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

    r25755 r26262  
    7272    psMetadataAddF32(recipe, PS_LIST_TAIL, "PSF_FIT_RADIUS", PS_META_REPLACE, "fit radius", options->fitRadius);
    7373    psMetadataAddF32(recipe, PS_LIST_TAIL, "PSF_APERTURE", PS_META_REPLACE, "psf aperture", options->apRadius);
    74 
    75     // XXX ROBUST seems to be too agressive given the small numbers.
    76     // options->stats = psStatsAlloc (PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
    77     options->stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV);
    7874
    7975    // dimensions of the field for which the PSF is defined
     
    116112    psLogMsg ("psphot.pspsf", PS_LOG_DETAIL, "selected candidate %ld PSF objects\n", stars->n);
    117113
     114    if (stars->n < 50) {
     115        // ROBUST is too agressive if we only have a small number of PSF stars
     116        options->stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV);
     117    } else {
     118        options->stats = psStatsAlloc (PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
     119    }
     120
    118121    // get the list pointers for the PSF_MODEL entries
    119122    psArray *modelNames = NULL;
Note: See TracChangeset for help on using the changeset viewer.