- Timestamp:
- Sep 19, 2009, 8:49:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotPetrosianStats.c
r25433 r25452 8 8 float InterpolateValues (float X0, float Y0, float X1, float Y1, float X); 9 9 10 bool psphotPetrosianStats (pmSource *source, pmPetrosian *petrosian) { 10 bool psphotPetrosianStats (pmSource *source) { 11 12 pmSourceRadialProfile *profile = source->extpars->profile; 11 13 12 14 float petRadius, petFlux; 13 15 14 psVector *binSB = p etrosian->binSB;15 psVector *binSBstdev = p etrosian->binSBstdev;16 psVector *binRad = p etrosian->radialBins;17 psVector *area = p etrosian->area;16 psVector *binSB = profile->binSB; 17 psVector *binSBstdev = profile->binSBstdev; 18 psVector *binRad = profile->radialBins; 19 psVector *area = profile->area; 18 20 19 21 psVector *fluxSum = psVectorAllocEmpty(binSB->n, PS_TYPE_F32); … … 139 141 } 140 142 141 // save petRadius, petFlux 143 if (!source->extpars->petrosian_80) { 144 source->extpars->petrosian_80 = pmSourceExtendedFluxAlloc (); 145 } 146 pmSourceExtendedFlux *petrosian = source->extpars->petrosian_80; 147 142 148 // XXX save flags (anyPetro, manyPetro) 143 petrosian-> petrosianRadius = petRadius;144 petrosian-> petrosianFlux = petFlux;149 petrosian->radius = petRadius; 150 petrosian->flux = petFlux; 145 151 146 psphotPetrosianVisualStats (binRad, binSB, refRadius, meanSB, petRatio, petRatioErr, fluxSum, petRadius, PETROSIAN_RATIO, petFlux, apRadius);152 // psphotPetrosianVisualStats (binRad, binSB, refRadius, meanSB, petRatio, petRatioErr, fluxSum, petRadius, PETROSIAN_RATIO, petFlux, apRadius); 147 153 148 154 psFree(fluxSum);
Note:
See TracChangeset
for help on using the changeset viewer.
