- Timestamp:
- Oct 9, 2013, 4:14:19 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130904/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psphot
- Property svn:mergeinfo changed
/trunk/psphot (added) merged: 36096,36100,36107-36108,36115,36117-36119,36124,36128
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130904/psphot/src
- Property svn:mergeinfo changed
/trunk/psphot/src merged: 36096,36100,36107-36108,36115,36117-36119,36124,36128
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130904/psphot/src/psphotPetrosianRadialBins.c
r31154 r36198 36 36 pmSourceRadialProfile *profile = source->extpars->petProfile; 37 37 38 float skyModelErrorSQ = PS_SQR(skynoise);38 // float skyModelErrorSQ = PS_SQR(skynoise); 39 39 40 40 int nMax = radiusMax; … … 133 133 if (radius->data.F32[i] > Rmax) { 134 134 // calculate the value for the nOut bin 135 float value , dvalue;135 float value; // , dvalue; 136 136 if (values->n > 0) { 137 137 psVectorStats (stats, values, NULL, NULL, 0); 138 138 value = stats->robustMedian; 139 dvalue = stats->robustStdev;139 // dvalue = stats->robustStdev; 140 140 } else { 141 141 value = NAN; 142 dvalue = NAN;142 // dvalue = NAN; 143 143 } 144 144 145 145 binSB->data.F32[nOut] = value; 146 binSBstdev->data.F32[nOut] = sqrt(PS_SQR(dvalue) / values->n + skyModelErrorSQ); 146 // binSBstdev->data.F32[nOut] = sqrt(PS_SQR(dvalue) / values->n + skyModelErrorSQ); 147 binSBstdev->data.F32[nOut] = skynoise / sqrt(values->n); 147 148 binFill->data.F32[nOut] = values->n / binArea->data.F32[nOut]; 148 149
Note:
See TracChangeset
for help on using the changeset viewer.
