Changeset 28013 for trunk/psphot/src/psphotRadialBins.c
- Timestamp:
- May 18, 2010, 4:11:53 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotRadialBins.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:mergeinfo
set to
/branches/eam_branches/psphot.20100506 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/psphot/src/psphotRadialBins.c
r27819 r28013 44 44 psVector *radMin = psMetadataLookupPtr (&status, recipe, "RADIAL.ANNULAR.BINS.LOWER"); 45 45 psVector *radMax = psMetadataLookupPtr (&status, recipe, "RADIAL.ANNULAR.BINS.UPPER"); 46 if (!radMin || !radMin->n) return false; 47 if (!radMax || !radMax->n) return false; 46 if (!radMin || !radMin->n) { 47 psError (PSPHOT_ERR_CONFIG, true, "error in definition of annular bins (radMin missing or empty)"); 48 return false; 49 } 50 if (!radMax || !radMax->n) { 51 psError (PSPHOT_ERR_CONFIG, true, "error in definition of annular bins (radMax missing or empty)"); 52 return false; 53 } 48 54 49 55 psVector *binSB = psVectorAllocEmpty(radMin->n, PS_TYPE_F32); // surface brightness of radial bin … … 139 145 } 140 146 } 141 binSB->n = binSBstdev->n = bin Rad->n = binArea->n = nOut;147 binSB->n = binSBstdev->n = binSum->n = binRad->n = binArea->n = nOut; 142 148 143 149 // interpolate any bins that were empty (extrapolate to center if needed) … … 155 161 psFree(values); 156 162 psFree(stats); 157 return false;163 return true; 158 164 } 159 165
Note:
See TracChangeset
for help on using the changeset viewer.
