IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25612


Ignore:
Timestamp:
Sep 27, 2009, 10:53:05 AM (17 years ago)
Author:
eugene
Message:

set the PSF fit radius and aperture based on the window function (identical to psf model generation)

File:
1 edited

Legend:

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

    r25497 r25612  
    7676    // assert (status);
    7777
    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
     78    // We have calculated a Gaussian window function, use that for both the PSF fit radius and
     79    // the aperture radius (scaling SIGMA)
    8180    float gaussSigma = psMetadataLookupF32(&status, recipe, "MOMENTS_GAUSS_SIGMA");
    8281    float fitScale = psMetadataLookupF32(&status, recipe, "PSF_FIT_RADIUS_SCALE");
     
    8483    options->fitRadius = (int)(fitScale*gaussSigma);
    8584    options->apRadius = (int)(apScale*gaussSigma);
     85
     86    // XXX use the same radii for standard analysis as for the PSF creation
     87    psMetadataAddF32(recipe, PS_LIST_TAIL, "PSF_FIT_RADIUS", PS_META_REPLACE, "fit radius", options->fitRadius);
     88    psMetadataAddF32(recipe, PS_LIST_TAIL, "PSF_APERTURE", PS_META_REPLACE, "psf aperture", options->apRadius);
    8689
    8790    // XXX ROBUST seems to be too agressive given the small numbers.
Note: See TracChangeset for help on using the changeset viewer.