- Timestamp:
- Oct 29, 2007, 2:59:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071023/psModules/src/objects/pmModelUtils.c
r14938 r15418 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $8 * @date $Date: 2007- 09-21 00:04:30$7 * @version $Revision: 1.3.6.1 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-10-30 00:59:23 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 36 36 pmModel *pmModelFromPSF (pmModel *modelEXT, pmPSF *psf) 37 37 { 38 PS_ASSERT_PTR_NON_NULL(psf, NULL); 39 PS_ASSERT_PTR_NON_NULL(modelEXT, NULL); 40 38 41 // allocate a new pmModel to hold the PSF version 39 42 pmModel *modelPSF = pmModelAlloc (psf->type); … … 53 56 // instantiate a model for the PSF at this location with peak flux 54 57 // NOTE: psf and (Xo,Yo) are defined wrt chip coordinates 55 pmModel *pmModelFromPSFforXY (pmPSF *psf, float Xo, float Yo, float Io) {56 57 assert (psf);58 pmModel *pmModelFromPSFforXY (pmPSF *psf, float Xo, float Yo, float Io) 59 { 60 PS_ASSERT_PTR_NON_NULL(psf, NULL); 58 61 59 62 // allocate a new pmModel to hold the PSF version … … 75 78 // set this model to have the requested flux 76 79 bool pmModelSetFlux (pmModel *model, float flux) { 80 PS_ASSERT_PTR_NON_NULL(model, NULL); 81 PS_ASSERT_PTR_NON_NULL(model->params, NULL); 77 82 78 83 // set Io to be 1.0
Note:
See TracChangeset
for help on using the changeset viewer.
