Changeset 17118
- Timestamp:
- Mar 24, 2008, 6:17:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080324/psphot/src/psphotSourceSize.c
r17113 r17118 47 47 // XXX for now, just skip any sources with masked pixels 48 48 source->crNsigma = -5.0; 49 bool keep = true; 50 for (int iy = -1; (iy <= +1) && keep; iy++) { 51 for (int ix = -1; (ix <= +1) && keep; ix++) { 52 if (mask[yPeak+iy][xPeak+ix]) { keep &= false; } 53 } 54 } 55 if (!keep) continue; 56 57 // need a reasonably fast way to follow the psf R = 1 annulus 58 59 // save the PSF model from the Ensemble fit 60 pmModel *PSF = source->modelPSF; 61 62 // convert model to polar terms 63 psEllipseShape shape; 64 psF32 *PAR = PSF->params->data.F32; 65 shape.sx = PAR[PM_PAR_SXX] / M_SQRT2; 66 shape.sy = PAR[PM_PAR_SYY] / M_SQRT2; 67 shape.sxy = PAR[PM_PAR_SXY]; 68 69 psEllipseShapeToAxes (shape, 20.0); 70 71 72 for (theta = 0.0; theta < 360.0; theta += 10.0) { 73 74 75 76 // XXX for now, just skip any masked pixels 77 extSum = 0.0; 49 78 bool keep = true; 50 79 for (int iy = -1; (iy <= +1) && keep; iy++) {
Note:
See TracChangeset
for help on using the changeset viewer.
