Changeset 19905 for trunk/psModules/src/objects/pmSourcePhotometry.c
- Timestamp:
- Oct 6, 2008, 3:03:40 AM (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
r18554 r19905 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.4 3$ $Name: not supported by cvs2svn $6 * @date $Date: 2008- 07-15 20:25:00 $5 * @version $Revision: 1.44 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-10-06 13:03:40 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 230 230 } 231 231 232 // measure the weight of included pixels 233 // XXX is this supposed to use the weight or the flux? 232 // measure the contribution of included pixels 234 233 if (mode & PM_SOURCE_PHOT_WEIGHT) { 235 234 pmSourcePixelWeight (&source->pixWeight, model, source->pixels, source->maskObj, maskVal); … … 379 378 NY = image->numRows; 380 379 381 // measure modelSum and validSum 382 // XXX this does not work for sources near the edge: we need to measure for 383 // a full square region 380 // measure modelSum and validSum. this function is applied to a sources' subimage. the 381 // value of DX is chosen (see above) to cover the full possible size of the subimage if it 382 // were not by an edge; ie, if the source is cut in half by an image edge, we correctly 383 // count the virtual pixels off the edge in normalizing the value of the pixWeight 384 384 for (int ix = -DX; ix < DX + 1; ix++) { 385 385 int mx = ix + dX;
Note:
See TracChangeset
for help on using the changeset viewer.
