- Timestamp:
- Apr 4, 2008, 3:49:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080324/psModules/src/objects/pmSourcePhotometry.c
r17310 r17328 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.39.2. 1$ $Name: not supported by cvs2svn $6 * @date $Date: 2008-04-0 3 06:01:55$5 * @version $Revision: 1.39.2.2 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2008-04-05 01:49:23 $ 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.
