- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psModules (modified) (1 prop)
-
psModules/src/objects (modified) (1 prop)
-
psModules/src/objects/pmModelUtils.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/objects
- Property svn:ignore
-
old new 12 12 pmSourceIO_CMF_PS1_V1.v1.c 13 13 pmSourceIO_CMF_PS1_V4.c 14 pmSourceIO_CMF_PS1_V5.c 14 15 pmSourceIO_CMF_PS1_SV1.c 15 16 pmSourceIO_CMF_PS1_SV2.c
-
- Property svn:ignore
-
branches/eam_branches/ps2-tc3-20130727/psModules/src/objects/pmModelUtils.c
r35768 r36680 39 39 #include "pmSourceDiffStats.h" 40 40 #include "pmSourceSatstar.h" 41 #include "pmSourceLensing.h" 41 42 #include "pmSource.h" 42 43 #include "pmSourceFitModel.h" … … 129 130 bool pmModelAxesToParams (float *Sxx, float *Sxy, float *Syy, psEllipseAxes axes, bool useReff) { 130 131 132 // restrict axex to 0.5 here not below 133 if (axes.minor < 0.2) axes.minor = 0.2; 134 if (axes.major < 0.2) axes.major = 0.2; 135 131 136 psEllipseShape shape = psEllipseAxesToShape (axes); 132 137 … … 137 142 // set the shape parameters 138 143 if (useReff) { 139 *Sxx = PS_MAX(0.5, shape.sx); 140 *Syy = PS_MAX(0.5, shape.sy); 144 // *Sxx = PS_MAX(0.5, shape.sx); 145 // *Syy = PS_MAX(0.5, shape.sy); 146 *Sxx = shape.sx; 147 *Syy = shape.sy; 141 148 *Sxy = shape.sxy * 2.0; 142 149 } else { 143 *Sxx = PS_MAX(0.5, M_SQRT2*shape.sx); 144 *Syy = PS_MAX(0.5, M_SQRT2*shape.sy); 150 // *Sxx = PS_MAX(0.5, M_SQRT2*shape.sx); 151 // *Syy = PS_MAX(0.5, M_SQRT2*shape.sy); 152 *Sxx = M_SQRT2*shape.sx; 153 *Syy = M_SQRT2*shape.sy; 145 154 *Sxy = shape.sxy; 146 155 } … … 190 199 191 200 if (!isfinite(axes.major)) return false; 201 if (axes.major == 0) return false; 192 202 if (!isfinite(axes.minor)) return false; 193 203 if (!isfinite(axes.theta)) return false; 204 if (axes.major == 0) return false; 194 205 195 206 // Mxx, Mxy, Myy define the elliptical shape, but Mrf defines the width
Note:
See TracChangeset
for help on using the changeset viewer.
