- Timestamp:
- Aug 22, 2007, 2:55:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psModules/src/objects/pmModelUtils.c
r14544 r14612 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.1.2. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-08- 17 21:01:59 $7 * @version $Revision: 1.1.2.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-08-23 00:55:49 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include "pmHDU.h" 23 23 #include "pmFPA.h" 24 #include "pmResiduals.h" 24 25 #include "pmGrowthCurve.h" 25 #include "pm Residuals.h"26 #include "pmPSF.h" 26 27 #include "pmModel.h" 27 #include "pmPSF.h"28 28 #include "pmErrorCodes.h" 29 29 #include "pmModelUtils.h" 30 31 /***************************************************************************** 32 pmModelFromPSF (*modelEXT, *psf): use the model position parameters to 33 construct a realization of the PSF model at the object coordinates 34 *****************************************************************************/ 35 pmModel *pmModelFromPSF (pmModel *modelEXT, pmPSF *psf) 36 { 37 // allocate a new pmModel to hold the PSF version 38 pmModel *modelPSF = pmModelAlloc (psf->type); 39 40 // set model parameters for this source based on PSF information 41 if (!modelEXT->modelFromPSF (modelPSF, modelEXT, psf)) { 42 psError(PM_ERR_PSF, false, "Failed to set model params from PSF"); 43 psFree(modelPSF); 44 return NULL; 45 } 46 // XXX note that model->residuals is just a reference 47 modelPSF->residuals = psf->residuals; 48 49 return (modelPSF); 50 } 30 51 31 52 // instantiate a model for the PSF at this location with peak flux
Note:
See TracChangeset
for help on using the changeset viewer.
