Changeset 34187
- Timestamp:
- Jul 20, 2012, 3:39:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/psModules/src/objects/models/pmModel_TRAIL.c
r34144 r34187 59 59 60 60 // Lax parameter limits 61 static float paramsMinLax[] = { -1.0e3, 1.0e-2, -1.0e2, -1.0e2, 0.5, -3.3, -0.5 };62 static float paramsMaxLax[] = { 1.0e5, 1.0e+8, +1.0e4, +1.0e4, 50.0, +3.3 , 5.0 };61 static float paramsMinLax[] = { -1.0e3, 1.0e-2, -1.0e2, -1.0e2, 0.5, -3.3, -0.5 }; 62 static float paramsMaxLax[] = { 1.0e5, 1.0e+8, +1.0e4, +1.0e4, 150.0, +3.3 , 5.0 }; 63 63 64 64 // Moderate parameter limits … … 255 255 if (!isfinite(axes.theta)) return false; 256 256 257 float size = (axes.major > source->moments->Mrf) ? axes.major : source->moments->Mrf; 258 257 259 // axes.major is a sigma in the major direction; scale to 258 PAR[PM_PAR_LENGTH] = 1.5*2.35* axes.major; // a tophat of length L has L = 1.5 * 2.35 * sigma260 PAR[PM_PAR_LENGTH] = 1.5*2.35*size; // a tophat of length L has L = 1.5 * 2.35 * sigma 259 261 PAR[PM_PAR_THETA] = axes.theta; // theta in radians 260 262 PAR[PM_PAR_SIGMA] = psfAxes.major; // psf major axes (sigma of the psf) … … 267 269 // set the model position 268 270 if (!pmModelSetPosition(&PAR[PM_PAR_XPOS], &PAR[PM_PAR_YPOS], source)) { 269 return false;271 return false; 270 272 } 271 273
Note:
See TracChangeset
for help on using the changeset viewer.
