Changeset 17396 for trunk/psModules/src/objects/pmSourcePhotometry.c
- Timestamp:
- Apr 8, 2008, 8:36:06 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourcePhotometry.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourcePhotometry.c
r17287 r17396 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $6 * @date $Date: 2008-04-0 2 22:40:36$5 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-04-08 18:35:38 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 119 119 } 120 120 121 // measure EXT model photometry (do both modelEXT and modelConv or just the one?) 122 status = pmSourcePhotometryModel (&source->extMag, source->modelEXT); 121 // if we have a collection of model fits, one of them is a pointer to modelEXT? 122 // XXX not guaranteed 123 if (source->modelFits) { 124 for (int i = 0; i < source->modelFits->n; i++) { 125 pmModel *model = source->modelFits->data[i]; 126 status = pmSourcePhotometryModel (&model->mag, model); 127 } 128 if (source->modelEXT) { 129 source->extMag = source->modelEXT->mag; 130 } 131 } else { 132 if (source->modelEXT) { 133 status = pmSourcePhotometryModel (&source->extMag, source->modelEXT); 134 } 135 } 123 136 124 137 // for PSFs, correct both apMag and psfMag to same system, consistent with infinite flux star in aperture RADIUS
Note:
See TracChangeset
for help on using the changeset viewer.
