- Timestamp:
- Oct 4, 2010, 2:48:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psModules/src/objects/pmSourcePhotometry.c
r29271 r29312 444 444 } 445 445 446 // NOTE: until 2010.10.01, these measurements included a 3sigma-per-pixel significance 447 // this followed what we understood as the definition given to us 448 // by Armin, but it always seemed a poor idea -- a faint source is unlikely to have any 3sigma pixels. 449 // changed to remove the per-pixel filter. 450 446 451 for (int iy = 0; iy < flux->numRows; iy++) { 447 452 for (int ix = 0; ix < flux->numCols; ix++) { 448 453 // only count up the stats in the unmarked region (ie, the aperture) 454 // skip the marked pixels; these are not relevant 449 455 if (mask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] & markVal) { 450 456 continue; … … 455 461 } 456 462 457 float SN = flux->data.F32[iy][ix] / sqrt(variance->data.F32[iy][ix]);458 459 if ( SN > +FLUX_LIMIT) {463 float flux = flux->data.F32[iy][ix]; 464 465 if (flux > 0.0) { 460 466 nGood ++; 461 fGood += fabs(flux->data.F32[iy][ix]); 462 } 463 464 if (SN < -FLUX_LIMIT) { 467 fGood += fabs(flux); 468 } else { 465 469 nBad ++; 466 fBad += fabs(flux- >data.F32[iy][ix]);470 fBad += fabs(flux-); 467 471 } 468 472 }
Note:
See TracChangeset
for help on using the changeset viewer.
