- Timestamp:
- Apr 18, 2011, 8:53:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/psModules/src/objects/pmSourcePhotometry.c
r31153 r31312 310 310 bool status; 311 311 status = pmSourcePhotometryAper(&source->apMagRaw, &source->apFlux, &source->apFluxErr, model, image, variance, mask, maskVal); 312 if (status) { 313 source->mode |= PM_SOURCE_MODE_AP_MAGS; 314 } 312 315 313 316 return status; … … 413 416 maskBad &= ~maskSuspect; 414 417 418 psImageMaskType maskPoor = maskVal | maskSuspect; 419 415 420 // measure modelSum and validSum. this function is applied to a sources' subimage. the 416 421 // value of DX is chosen (see above) to cover the full possible size of the subimage if it … … 446 451 447 452 // count pixels which are masked with an mask bit (bad or poor) 448 if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[my][mx] & mask Val)) {453 if (!(mask->data.PS_TYPE_IMAGE_MASK_DATA[my][mx] & maskPoor)) { 449 454 notPoorSum += value; 450 455 } … … 487 492 488 493 if (isfinite(source->pixWeightNotBad) && isfinite(source->pixWeightNotPoor)) { 489 psAssert (source->pixWeightNot Bad <= source->pixWeightNotPoor, "error: all bad pixels should also be poor");494 psAssert (source->pixWeightNotPoor <= source->pixWeightNotBad, "error: all bad pixels should also be poor"); 490 495 } 491 496
Note:
See TracChangeset
for help on using the changeset viewer.
