- Timestamp:
- Jul 17, 2014, 12:32:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/ppSim/src/ppSimInsertStars.c
r35770 r37067 78 78 79 79 FILE *outfile = fopen (outname, "w"); 80 psAssert (outfile, "cannot write output"); 80 81 81 82 float radius = -1.0; … … 115 116 // (inserting flux with a variable radius introduces a flux-dependent bias) 116 117 if (radius < 0) { 117 radius = model-> modelRadius (model->params, nSigmaLim * roughNoise);118 radius = model->class->modelRadius (model->params, nSigmaLim * roughNoise); 118 119 radius = PS_MAX (radius, 1.0); 119 120 radius = PS_MIN (radius, 50.0); … … 125 126 // XXX set the mag & err values (should this be done in pmSourceFromModel?) 126 127 // XXX i should be applying the gain and the correct effective area 127 psEllipseAxes axes = pmPSF_ModelToAxes (model->params->data.F32, model-> type);128 psEllipseAxes axes = pmPSF_ModelToAxes (model->params->data.F32, model->class->useReff); 128 129 float Area = 2.0 * M_PI * axes.major * axes.minor; 129 130
Note:
See TracChangeset
for help on using the changeset viewer.
