Changeset 14760
- Timestamp:
- Sep 5, 2007, 12:11:31 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotRoughClass.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotRoughClass.c
r14759 r14760 9 9 10 10 if (!havePSF) { 11 // determine the PSF parameters from the source moment values11 // determine the PSF parameters from the source moment values 12 12 psfClump = pmSourcePSFClump (sources, recipe); 13 } else 14 // pull FWHM_X,Y from the recipe, use to define psfClump.X,Y15 bool status_x, status_y ;13 } else { 14 // pull FWHM_X,Y from the recipe, use to define psfClump.X,Y 15 bool status_x, status_y, status_a; 16 16 float FWHM_X = psMetadataLookupF32 (&status_x, recipe, "FWHM_X"); 17 17 float FWHM_Y = psMetadataLookupF32 (&status_y, recipe, "FWHM_Y"); … … 22 22 } 23 23 24 psEllipseAxes axes;25 axes.major = FWHM_X / (2.0*sqrt(2.0*log(2.0)));26 axes.minor = FWHM_Y / (2.0*sqrt(2.0*log(2.0)));27 axes.theta = ANGLE;28 psEllipseShape shape = psEllipseAxesToShape (axes);29 24 psEllipseAxes axes; 25 axes.major = FWHM_X / (2.0*sqrt(2.0*log(2.0))); 26 axes.minor = FWHM_Y / (2.0*sqrt(2.0*log(2.0))); 27 axes.theta = ANGLE; 28 psEllipseShape shape = psEllipseAxesToShape (axes); 29 30 30 psfClump.X = shape.sx; 31 31 psfClump.Y = shape.sy; 32 32 psfClump.dX = 0.1*shape.sx; 33 33 psfClump.dY = 0.1*shape.sy; 34 // dX,dY are somewhat crudely defined, but only used to select PSF candidates.35 // if we already have a PSF, this is not actually used...34 // dX,dY are somewhat crudely defined, but only used to select PSF candidates. 35 // if we already have a PSF, this is not actually used... 36 36 } 37 37
Note:
See TracChangeset
for help on using the changeset viewer.
