Changeset 28003 for branches/pap/psphot/src/psphotRadialProfile.c
- Timestamp:
- May 18, 2010, 12:49:05 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphot/src/psphotRadialProfile.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/psphot/src/psphotRadialProfile.c
r25755 r28003 3 3 bool psphotRadialProfile (pmSource *source, psMetadata *recipe, float skynoise, psImageMaskType maskVal) { 4 4 5 bool status; 6 5 7 // allocate pmSourceExtendedParameters, if not already defined 6 8 if (!source->extpars) { 7 9 source->extpars = pmSourceExtendedParsAlloc (); 8 }9 10 if (!source->extpars->profile) {11 source->extpars->profile = pmSourceRadialProfileAlloc ();12 10 } 13 11 … … 17 15 float fluxMin = 0.0; 18 16 float fluxMax = source->peak->flux; 17 18 bool RAW_RADIUS = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_RAW_RADIUS"); 19 19 20 20 // generate a series of radial profiles at Nsec evenly spaced angles. the profile flux … … 28 28 // use the radial profiles to determine the radius of a given isophote. this isophote 29 29 // is used to determine the elliptical shape of the object, so it has a relatively high 30 // value (nominally 50% of the peak)30 // value (nominally 25% of the peak) 31 31 if (!psphotRadiiFromProfiles (source, fluxMin, fluxMax)) { 32 32 psError (PS_ERR_UNKNOWN, false, "failed to measure isophotal radii from profiles"); … … 42 42 // generate a single, normalized radial profile following the elliptical contours. 43 43 // the radius is normalized by the axis ratio so that on the major axis, 1 pixel = 1 pixel 44 if (!psphotEllipticalProfile (source )) {44 if (!psphotEllipticalProfile (source, RAW_RADIUS)) { 45 45 psError (PS_ERR_UNKNOWN, false, "failed to generate elliptical profile"); 46 return false; 47 } 48 49 // generated profile in averaged bins 50 if (!psphotRadialBins (recipe, source, Rmax, skynoise)) { 51 psError (PS_ERR_UNKNOWN, false, "failed to generate radial bins"); 46 52 return false; 47 53 }
Note:
See TracChangeset
for help on using the changeset viewer.
