- Timestamp:
- Aug 17, 2007, 11:27:05 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070817/psphot/src/psphotGrowthCurve.c
r13900 r14545 14 14 float radius; 15 15 16 // create template model17 pmModel *modelRef = pmModelAlloc(psf->type);18 19 16 // use the center of the center pixel of the image 20 17 xc = 0.5*readout->image->numCols + readout->image->col0 + 0.5; … … 23 20 dy = psf->growth->maxRadius + 1; 24 21 25 // assign the x and y coords to the image center 26 // create an object with center intensity of 1000 27 modelRef->params->data.F32[PM_PAR_SKY] = 0; 28 modelRef->params->data.F32[PM_PAR_I0] = 1000; 29 modelRef->params->data.F32[PM_PAR_XPOS] = xc; 30 modelRef->params->data.F32[PM_PAR_YPOS] = yc; 31 32 // create modelPSF from this model 33 pmModel *model = pmModelFromPSF (modelRef, psf); 22 // create normalized model object at xc,yc 23 pmModel *model = pmModelFromPSFforXY (psf, xc, yc, 1.0); 34 24 35 25 // measure the fitMag for this model … … 76 66 psFree (mask); 77 67 psFree (model); 78 psFree (modelRef);79 68 80 69 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
