Changeset 35639 for branches/eam_branches/ipp-20130509/psModules/src/objects/models/pmModel_QGAUSS.c
- Timestamp:
- Jun 9, 2013, 3:30:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/psModules/src/objects/models/pmModel_QGAUSS.c
r35560 r35639 1 1 /****************************************************************************** 2 * this file defines the QGAUSS source shape model (XXX need a better name!). Note that these 3 * model functions are loaded by pmModelClass.c using 'include', and thus need no 'include' 4 * statements of their own. The models use a psVector to represent the set of parameters, with 5 * the sequence used to specify the meaning of the parameter. The meaning of the parameters 6 * may thus vary depending on the specifics of the model. All models which are used a PSF 7 * representations share a few parameters, for which # define names are listed in pmModel.h: 2 * this file defines the QGAUSS source shape model. Note that these model functions are 3 * loaded by pmModelClass.c using 'include', and thus need no 'include' statements of 4 * their own. The models use a psVector to represent the set of parameters, with the 5 * sequence used to specify the meaning of the parameter. The meaning of the parameters 6 * may thus vary depending on the specifics of the model. All models which are used as a 7 * PSF representations share a few parameters, for which # define names are listed in 8 * pmModel.h: 8 9 9 10 power-law with fitted linear term … … 14 15 * PM_PAR_XPOS 2 - X center of object 15 16 * PM_PAR_YPOS 3 - Y center of object 16 * PM_PAR_SXX 4 - X^2 term of elliptical contour ( sqrt(2) / SigmaX)17 * PM_PAR_SYY 5 - Y^2 term of elliptical contour ( sqrt(2) / SigmaY)17 * PM_PAR_SXX 4 - X^2 term of elliptical contour (SigmaX / sqrt(2)) 18 * PM_PAR_SYY 5 - Y^2 term of elliptical contour (SigmaY / sqrt(2)) 18 19 * PM_PAR_SXY 6 - X*Y term of elliptical contour 19 20 * PM_PAR_7 7 - amplitude of the linear component (k) … … 138 139 # define AR_MAX 20.0 139 140 # define AR_RATIO 0.99 140 141 141 bool PM_MODEL_LIMITS (psMinConstraintMode mode, int nParam, float *params, float *beta) 142 142 { … … 203 203 return true; 204 204 } 205 default:205 default: 206 206 psAbort("invalid choice for limits"); 207 207 } … … 293 293 if (flux >= PAR[PM_PAR_I0]) return 1.0; 294 294 295 // if (PAR[PM_PAR_7] == 0.0) return powf(PAR[PM_PAR_I0] / flux - 1.0, 1.0 / ALPHA);296 297 295 shape.sx = PAR[PM_PAR_SXX] / M_SQRT2; 298 296 shape.sy = PAR[PM_PAR_SYY] / M_SQRT2; … … 307 305 return ( sigma * sqrt (2.0 * z) ); 308 306 } 309 310 307 psF64 limit = flux / PAR[PM_PAR_I0]; 311 308
Note:
See TracChangeset
for help on using the changeset viewer.
