- Timestamp:
- Feb 19, 2011, 10:40:50 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110213/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotPetrosianRadialBins.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psphot
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20110213/psphot/src/psphotPetrosianRadialBins.c
r28013 r30707 51 51 psVector *binRad = psVectorAllocEmpty(nMax, PS_TYPE_F32); // mean radius of radial bin 52 52 psVector *binArea = psVectorAllocEmpty(nMax, PS_TYPE_F32); // area of radial bin (contiguous, non-overlapping) 53 psVector *binFill = psVectorAllocEmpty(nMax, PS_TYPE_F32); // fraction of radial bin with valid pixels 53 54 54 55 psVectorInit (binSB, 0.0); … … 144 145 binSB->data.F32[nOut] = value; 145 146 binSBstdev->data.F32[nOut] = sqrt(PS_SQR(dvalue) / values->n + skyModelErrorSQ); 147 binFill->data.F32[nOut] = values->n / binArea->data.F32[nOut]; 146 148 147 149 // error in the SB is the stdev per bin / sqrt (number of pixels) … … 176 178 psFree(binRad); 177 179 psFree(binArea); 180 psFree(binFill); 178 181 psFree(radMin); 179 182 psFree(radMax); … … 202 205 psFree(profile->radialBins); 203 206 psFree(profile->area); 207 psFree(profile->binFill); 204 208 205 209 // save the vectors 206 210 profile->radialBins = binRad; 207 211 profile->area = binArea; 212 profile->binFill = binFill; 208 213 profile->binSB = binSB; 209 214 profile->binSBstdev = binSBstdev;
Note:
See TracChangeset
for help on using the changeset viewer.
