- 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/pmPSF.c
r13898 r14544 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.25 $ $Name: not supported by cvs2svn $9 * @date $Date: 2007-0 6-20 02:22:26$8 * @version $Revision: 1.25.6.1 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-08-17 21:01:59 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 32 32 #include "pmGrowthCurve.h" 33 33 #include "pmPSF.h" 34 #include "pmModel Group.h"34 #include "pmModelClass.h" 35 35 #include "pmSourcePhotometry.h" 36 36 #include "pmFPAMaskWeight.h" … … 124 124 psf->residuals = NULL; 125 125 126 Nparams = pmModel ParameterCount (type);126 Nparams = pmModelClassParameterCount (type); 127 127 if (!Nparams) { 128 128 psError(PS_ERR_UNKNOWN, true, "Undefined pmModelType"); … … 169 169 pmModel *pmModelFromPSF (pmModel *modelEXT, pmPSF *psf) 170 170 { 171 172 // need to define the relationship between the modelEXT and modelPSF ?173 174 // find function used to set the model parameters175 pmModelFromPSFFunc modelFromPSFFunc = pmModelFromPSFFunc_GetFunction (psf->type);176 177 171 // allocate a new pmModel to hold the PSF version 178 172 pmModel *modelPSF = pmModelAlloc (psf->type); 179 173 180 174 // set model parameters for this source based on PSF information 181 if (!model FromPSFFunc(modelPSF, modelEXT, psf)) {175 if (!modelEXT->modelFromPSF (modelPSF, modelEXT, psf)) { 182 176 psError(PM_ERR_PSF, false, "Failed to set model params from PSF"); 183 177 psFree(modelPSF); … … 335 329 va_start(ap, sxy); 336 330 337 pmModelType type = pmModel SetType (typeName);331 pmModelType type = pmModelClassGetType (typeName); 338 332 psPolynomial2D *psfTrend = psPolynomial2DAlloc (PS_POLYNOMIAL_ORD, 0, 0); 339 333 pmPSF *psf = pmPSFAlloc (type, true, psfTrend);
Note:
See TracChangeset
for help on using the changeset viewer.
