- Timestamp:
- Jul 9, 2010, 10:56:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourcePhotometry.c
r28440 r28643 22 22 #include "pmFPA.h" 23 23 #include "pmFPAMaskWeight.h" 24 25 #include "pmTrend2D.h" 26 #include "pmResiduals.h" 27 #include "pmGrowthCurve.h" 24 28 #include "pmSpan.h" 29 #include "pmFootprintSpans.h" 25 30 #include "pmFootprint.h" 26 31 #include "pmPeaks.h" 27 32 #include "pmMoments.h" 28 #include "pmGrowthCurve.h" 29 #include "pmResiduals.h" 30 #include "pmTrend2D.h" 33 #include "pmModelFuncs.h" 34 #include "pmModel.h" 35 #include "pmModelUtils.h" 36 #include "pmModelClass.h" 37 #include "pmSourceMasks.h" 38 #include "pmSourceExtendedPars.h" 39 #include "pmSourceDiffStats.h" 40 #include "pmSource.h" 41 #include "pmSourceFitModel.h" 31 42 #include "pmPSF.h" 32 #include "pmModel.h" 33 #include "pmSource.h" 34 #include "pmModelClass.h" 43 #include "pmPSFtry.h" 44 35 45 #include "pmSourcePhotometry.h" 36 46 … … 257 267 PS_ASSERT_PTR_NON_NULL(image, false); 258 268 PS_ASSERT_PTR_NON_NULL(mask, false); 259 PS_ASSERT_PTR_NON_NULL(model, false); 269 270 if (DO_SKY) { 271 PS_ASSERT_PTR_NON_NULL(model, false); 272 } 260 273 261 274 float apSum = 0; … … 271 284 psF32 **imData = image->data.F32; 272 285 psImageMaskType **mkData = mask->data.PS_TYPE_IMAGE_MASK_DATA; 286 int nAperPix = 0; 273 287 274 288 // measure apMag 275 for (int i x = 0; ix < image->numCols; ix++) {276 for (int iy = 0; iy < image->numRows; iy++) {289 for (int iy = 0; iy < image->numRows; iy++) { 290 for (int ix = 0; ix < image->numCols; ix++) { 277 291 if (mkData[iy][ix] & maskVal) 278 292 continue; 279 293 apSum += imData[iy][ix] - sky; 294 nAperPix ++; 295 // fprintf (stderr, "aper: %d %d %f %f %f\n", ix, iy, sky, imData[iy][ix], apSum); 280 296 } 281 297 }
Note:
See TracChangeset
for help on using the changeset viewer.
