- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotEllipticalProfile.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/psphot
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psphot merged eligible /branches/eam_branches/stackphot.20100406/psphot 27622-27655 /branches/pap_delete/psphot 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/psphot/src
- Property svn:ignore
-
old new 19 19 psphotMomentsStudy 20 20 psphotPetrosianStudy 21 psphotForced 22 psphotMakePSF 23 psphotStack
-
- Property svn:ignore
-
branches/tap_branches/psphot/src/psphotEllipticalProfile.c
r25755 r27838 1 1 # include "psphotInternal.h" 2 2 3 bool psphotEllipticalProfile (pmSource *source ) {3 bool psphotEllipticalProfile (pmSource *source, bool RAW_RADIUS) { 4 4 5 pmSourceRadialProfile *profile = source->extpars->profile; 5 psAssert (source, "missing source"); 6 psAssert (source->extpars, "missing extpars"); 7 psAssert (source->pixels, "missing pixels"); 8 9 pmSourceExtendedPars *extpars = source->extpars; 10 11 if (!source->extpars->ellipticalFlux) { 12 source->extpars->ellipticalFlux = pmSourceEllipticalFluxAlloc(); 13 } 14 pmSourceEllipticalFlux *profile = source->extpars->ellipticalFlux; 6 15 7 16 profile->radiusElliptical = psVectorAllocEmpty(100, PS_TYPE_F32); … … 21 30 22 31 psEllipseAxes axes; 23 axes.major = M_SQRT1_2; 24 axes.minor = M_SQRT1_2 * (profile->axes.minor / profile->axes.major); 32 if (RAW_RADIUS) { 33 // force circular profile 34 axes.major = M_SQRT1_2; 35 axes.minor = M_SQRT1_2; 36 } else { 37 axes.major = M_SQRT1_2; 38 axes.minor = M_SQRT1_2 * (extpars->axes.minor / extpars->axes.major); 39 } 25 40 26 41 // axes.major = 1.0; 27 // axes.minor = profile->axes.minor / profile->axes.major;42 // axes.minor = extpars->axes.minor / extpars->axes.major; 28 43 29 axes.theta = profile->axes.theta;44 axes.theta = extpars->axes.theta; 30 45 psEllipseShape shape = psEllipseAxesToShape (axes); 31 46 … … 46 61 47 62 float r2 = 0.5*PS_SQR(x/Sxx) + 0.5*PS_SQR(y/Syy) + x*y*Sxy; 63 float Rraw = hypot(x, y); 48 64 49 65 psVectorAppend(radius, sqrt(r2)); 50 66 psVectorAppend(flux, source->pixels->data.F32[iy][ix]); 51 67 52 float Rraw = hypot(x, y);53 68 psVectorAppend(radiusRaw, Rraw); 54 69 psVectorAppend(fluxRaw, source->pixels->data.F32[iy][ix]); … … 67 82 // } 68 83 69 // psphotPetrosianVisualProfileRadii (radius, flux, radiusRaw, fluxRaw, 0.0);84 psphotPetrosianVisualProfileRadii (radius, flux, radiusRaw, fluxRaw, source->peak->flux, 0.0); 70 85 // psphotPetrosianVisualProfileByAngle (radius, flux); 71 86
Note:
See TracChangeset
for help on using the changeset viewer.
