Changeset 10267
- Timestamp:
- Nov 28, 2006, 5:03:53 PM (20 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
psphotChoosePSF.c (modified) (2 diffs)
-
psphotModelTest.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r10202 r10267 288 288 shape.sy = modelPSF->params->data.F32[PM_PAR_SYY]; 289 289 shape.sxy = modelPSF->params->data.F32[PM_PAR_SXY]; 290 axes = psEllipseShapeToAxes (shape );290 axes = psEllipseShapeToAxes (shape, 20.0); 291 291 292 292 psF64 FWHM_Y = FWHM_X * (axes.minor / axes.major); … … 330 330 moments.xy = source->moments->Sxy; 331 331 332 axes = psEllipseMomentsToAxes (moments); 332 // limit axis ratio < 20.0 333 axes = psEllipseMomentsToAxes (moments, 20.0); 333 334 334 335 FWHM_X += axes.major * 2.35; -
trunk/psphot/src/psphotModelTest.c
r10096 r10267 107 107 moments.y2 = source->moments->Sy; 108 108 moments.xy = source->moments->Sxy; 109 psEllipseAxes axes = psEllipseMomentsToAxes (moments );109 psEllipseAxes axes = psEllipseMomentsToAxes (moments, 20.0); 110 110 111 111 fprintf (stderr, "axes: %f @ (%f, %f)\n", axes.theta*180/M_PI, axes.major, axes.minor); … … 147 147 shape.sy = 1.4 / model->params->data.F32[5]; 148 148 shape.sxy = model->params->data.F32[6]; 149 axes = psEllipseShapeToAxes (shape );149 axes = psEllipseShapeToAxes (shape, 20.0); 150 150 151 151 fprintf (stderr, "guess: %f @ (%f, %f)\n", axes.theta*180/M_PI, axes.major, axes.minor);
Note:
See TracChangeset
for help on using the changeset viewer.
