- Timestamp:
- Aug 17, 2007, 11:01:59 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psModules/src/objects/pmSourcePhotometry.c
r13898 r14544 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $6 * @date $Date: 2007-0 6-20 02:22:26$5 * @version $Revision: 1.28.6.1 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-08-17 21:01:59 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 #include "pmPSF.h" 30 30 #include "pmSource.h" 31 #include "pmModel Group.h"31 #include "pmModelClass.h" 32 32 #include "pmSourcePhotometry.h" 33 33 … … 250 250 251 251 // measure fitMag 252 pmModelFlux modelFluxFunc = pmModelFlux_GetFunction (model->type); 253 fitSum = modelFluxFunc (model->params); 252 fitSum = model->modelFlux (model->params); 254 253 if (fitSum <= 0) 255 254 return false; … … 324 323 325 324 // the model function returns the source flux at a position 326 pmModelFunc modelFunc = pmModelFunc_GetFunction (model->type);327 325 psVector *coord = psVectorAlloc(2, PS_TYPE_F32); 328 326 … … 354 352 355 353 // for the full model, add all points 356 value = model Func (NULL, params, coord) - sky;354 value = model->modelFunc (NULL, params, coord) - sky; 357 355 modelSum += value; 358 356
Note:
See TracChangeset
for help on using the changeset viewer.
