IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2009, 11:17:41 AM (17 years ago)
Author:
eugene
Message:

psf model ap radius different from fit radius; both set based on results of moments analysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotChoosePSF.c

    r23989 r25497  
    7373    // get the fixed PSF fit radius
    7474    // XXX check that PSF_FIT_RADIUS < SKY_OUTER_RADIUS
    75     options->radius = psMetadataLookupF32 (&status, recipe, "PSF_FIT_RADIUS");
    76     assert (status);
     75    // options->radius = psMetadataLookupF32 (&status, recipe, "PSF_FIT_RADIUS");
     76    // assert (status);
     77
     78    // XXX we have calculated a Gaussian window function, use that for both the PSF fit radius
     79    // and the aperture radius (scaling SIGMA)
     80    // XXX put the scale factors into the recipe
     81    float gaussSigma = psMetadataLookupF32(&status, recipe, "MOMENTS_GAUSS_SIGMA");
     82    float fitScale = psMetadataLookupF32(&status, recipe, "PSF_FIT_RADIUS_SCALE");
     83    float apScale = psMetadataLookupF32(&status, recipe, "PSF_APERTURE_SCALE");
     84    options->fitRadius = (int)(fitScale*gaussSigma);
     85    options->apRadius = (int)(apScale*gaussSigma);
    7786
    7887    // XXX ROBUST seems to be too agressive given the small numbers.
     
    289298    // XXX test dump of psf star data and psf-subtracted image
    290299    if (psTraceGetLevel("psphot.psfstars") > 5) {
    291         psphotDumpPSFStars (readout, try, options->radius, maskVal, markVal);
     300        psphotDumpPSFStars (readout, try, options->fitRadius, maskVal, markVal);
    292301    }
    293302
Note: See TracChangeset for help on using the changeset viewer.