Changeset 20077 for trunk/psModules/src/objects/pmSourcePhotometry.c
- Timestamp:
- Oct 12, 2008, 3:59:05 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourcePhotometry.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourcePhotometry.c
r19905 r20077 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.4 4$ $Name: not supported by cvs2svn $6 * @date $Date: 2008-10- 06 13:03:40$5 * @version $Revision: 1.45 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-10-13 01:59:05 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 141 141 } 142 142 143 if (!isfinite(SN) || (SN < AP_MIN_SN)) { 143 // measure the contribution of included pixels 144 if (mode & PM_SOURCE_PHOT_WEIGHT) { 145 pmSourcePixelWeight (&source->pixWeight, model, source->pixels, source->maskObj, maskVal); 146 } 147 148 // measure the aperture magnitude, if (SN > AP_MIN_SN) 149 if (!isfinite(SN)) { 144 150 psTrace ("psModules.objects", 3, "fail mag : bad SN: %f (limit: %f)", SN, AP_MIN_SN); 145 151 return false; 152 } 153 154 // measure the aperture magnitude, if (SN > AP_MIN_SN) 155 if (SN < AP_MIN_SN) { 156 psTrace ("psModules.objects", 3, "skip ap mag : SN < limit : %f vs %f)", SN, AP_MIN_SN); 157 return true; 146 158 } 147 159 … … 230 242 } 231 243 232 // measure the contribution of included pixels233 if (mode & PM_SOURCE_PHOT_WEIGHT) {234 pmSourcePixelWeight (&source->pixWeight, model, source->pixels, source->maskObj, maskVal);235 }236 237 244 // measure object aperture photometry 238 245 status = pmSourcePhotometryAper (&source->apMag, model, flux, mask, maskVal);
Note:
See TracChangeset
for help on using the changeset viewer.
