Changeset 36868
- Timestamp:
- Jun 13, 2014, 11:09:24 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
ppSim/src/ppSimInsertGalaxies.c (modified) (1 diff)
-
ppSim/src/ppSimInsertStars.c (modified) (1 diff)
-
psastro/src/psastroConvert.c (modified) (1 diff)
-
psphot/src/psphotFullForceSummaryReadout.c (modified) (2 diffs)
-
psphot/src/psphotGalaxyShape.c (modified) (3 diffs)
-
psphot/src/psphotLoadSRCTEXT.c (modified) (1 diff)
-
pswarp/src/pswarpTransformSources.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimInsertGalaxies.c
r36862 r36868 145 145 axes.minor = galaxy->Rmin; 146 146 axes.theta = galaxy->theta; 147 pmPSF_AxesToModel (PAR, axes, type);147 pmPSF_AxesToModel (PAR, axes, model->class->useReff); 148 148 } 149 149 psF64 Area = 2.0 * M_PI * galaxy->Rmaj * galaxy->Rmin; -
trunk/ppSim/src/ppSimInsertStars.c
r36862 r36868 126 126 // XXX set the mag & err values (should this be done in pmSourceFromModel?) 127 127 // XXX i should be applying the gain and the correct effective area 128 psEllipseAxes axes = pmPSF_ModelToAxes (model->params->data.F32, model-> type);128 psEllipseAxes axes = pmPSF_ModelToAxes (model->params->data.F32, model->class->useReff); 129 129 float Area = 2.0 * M_PI * axes.major * axes.minor; 130 130 -
trunk/psastro/src/psastroConvert.c
r36837 r36868 199 199 // effect (all affected data was processed BEFORE the bug was introduced), and it 200 200 // does not affect any of the PV2 or PV3 data processed AFTER the bug was fixed. 201 psEllipseAxes axes = pmPSF_ModelToAxes (PAR, model-> type);201 psEllipseAxes axes = pmPSF_ModelToAxes (PAR, model->class->useReff); 202 202 203 203 pmAstromObj *obj = pmAstromObjAlloc (); -
trunk/psphot/src/psphotFullForceSummaryReadout.c
r36759 r36868 425 425 // copy the best fit params to the model 426 426 // fractional radii with the lowest chisq 427 psEllipseAxes axes = pmPSF_ModelToAxes(model->params->data.F32, model-> type);427 psEllipseAxes axes = pmPSF_ModelToAxes(model->params->data.F32, model->class->useReff); 428 428 429 429 // examine the params for the trial with minimum chisq. … … 637 637 // now save the model parameters in the model structure 638 638 639 pmPSF_AxesToModel (model->params->data.F32, axes, model Type);639 pmPSF_AxesToModel (model->params->data.F32, axes, model->class->useReff); 640 640 641 641 model->mag = -2.5 * log10(flux0); -
trunk/psphot/src/psphotGalaxyShape.c
r36863 r36868 283 283 284 284 // I have some source guess (e0, e1, e2) 285 psEllipseAxes guessAxes = pmPSF_ModelToAxes (PAR, model Type);285 psEllipseAxes guessAxes = pmPSF_ModelToAxes (PAR, model->class->useReff); 286 286 287 287 float fRmajorBest = NAN; … … 295 295 testAxes.minor = guessAxes.minor * fRminor; 296 296 297 pmPSF_AxesToModel (PAR, testAxes, model Type);297 pmPSF_AxesToModel (PAR, testAxes, model->class->useReff); 298 298 299 299 psphotGalaxyShapeSource (pcm, source, galaxyFits, maskVal, psfSize, true); … … 324 324 #endif 325 325 326 pmPSF_AxesToModel (PAR, testAxes, model Type);326 pmPSF_AxesToModel (PAR, testAxes, model->class->useReff); 327 327 328 328 psphotGalaxyShapeSource (pcm, source, galaxyFits, maskVal, psfSize, false); -
trunk/psphot/src/psphotLoadSRCTEXT.c
r32348 r36868 73 73 dPAR[PM_PAR_I0] = 0.0; 74 74 75 pmPSF_AxesToModel (PAR, axes, model Type);75 pmPSF_AxesToModel (PAR, axes, model->class->useReff); 76 76 77 77 float peakFlux = 1.0; -
trunk/pswarp/src/pswarpTransformSources.c
r34800 r36868 120 120 #if 0 121 121 // XXX Note that this will not set the correct axes 122 psEllipseAxes axes = pmPSF_ModelToAxes(source->modelPSF->params->data.F32, 20.0, source->modelPSF-> type);123 pmPSF_AxesToModel(new->modelPSF->params->data.F32, axes, new->modelPSF-> type);122 psEllipseAxes axes = pmPSF_ModelToAxes(source->modelPSF->params->data.F32, 20.0, source->modelPSF->class->useReff); 123 pmPSF_AxesToModel(new->modelPSF->params->data.F32, axes, new->modelPSF->class->useReff); 124 124 #endif 125 125
Note:
See TracChangeset
for help on using the changeset viewer.
