Changeset 36862 for trunk/ppSim
- Timestamp:
- Jun 13, 2014, 8:49:28 AM (12 years ago)
- Location:
- trunk/ppSim/src
- Files:
-
- 2 edited
-
ppSimInsertGalaxies.c (modified) (2 diffs)
-
ppSimInsertStars.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimInsertGalaxies.c
r34261 r36862 154 154 155 155 // XXX let the flux limit be a user-defined number of sky sigmas (not just 1.0) 156 float radius = model-> modelRadius (model->params, 0.1*roughNoise);156 float radius = model->class->modelRadius (model->params, 0.1*roughNoise); 157 157 radius = PS_MAX (radius, 1.0); 158 158 … … 163 163 pmSource *source = pmSourceFromModel (model, readout, radius, PM_SOURCE_TYPE_EXTENDED); 164 164 165 galaxy->flux = model-> modelFlux (model->params);165 galaxy->flux = model->class->modelFlux (model->params); 166 166 167 167 // XXX set the mag & err values (should this be done in pmSourceFromModel?) -
trunk/ppSim/src/ppSimInsertStars.c
r36375 r36862 116 116 // (inserting flux with a variable radius introduces a flux-dependent bias) 117 117 if (radius < 0) { 118 radius = model-> modelRadius (model->params, nSigmaLim * roughNoise);118 radius = model->class->modelRadius (model->params, nSigmaLim * roughNoise); 119 119 radius = PS_MAX (radius, 1.0); 120 120 radius = PS_MIN (radius, 50.0);
Note:
See TracChangeset
for help on using the changeset viewer.
