Changeset 23989 for trunk/psModules/src/objects/pmSource.c
- Timestamp:
- Apr 28, 2009, 11:21:56 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r23187 r23989 479 479 stats = psStatsAlloc (PS_STAT_CLIPPED_MEAN | PS_STAT_CLIPPED_STDEV); 480 480 481 psVectorStats (stats, tmpSx, NULL, NULL, 0); 481 if (!psVectorStats (stats, tmpSx, NULL, NULL, 0)) { 482 psError(PS_ERR_UNKNOWN, false, "failed to measure Sx stats"); 483 return (emptyClump); 484 } 482 485 psfClump.X = stats->clippedMean; 483 486 psfClump.dX = stats->clippedStdev; 484 487 485 psVectorStats (stats, tmpSy, NULL, NULL, 0); 488 if (!psVectorStats (stats, tmpSy, NULL, NULL, 0)) { 489 psError(PS_ERR_UNKNOWN, false, "failed to measure Sy stats"); 490 return (emptyClump); 491 } 486 492 psfClump.Y = stats->clippedMean; 487 493 psfClump.dY = stats->clippedStdev; … … 636 642 637 643 if (!psVectorStats (stats, starsn_moments, NULL, NULL, 0)) { 638 // Don't care about this error 639 psErrorClear(); 644 psError(PS_ERR_UNKNOWN, false, "failed to measure SN / moments stats"); 645 psFree (stats); 646 psFree (starsn_peaks); 647 return false; 640 648 } 641 649 psLogMsg ("pmObjects", 3, "SN range (moments): %f - %f\n", stats->min, stats->max); … … 648 656 stats = psStatsAlloc (PS_STAT_MIN | PS_STAT_MAX); 649 657 if (!psVectorStats (stats, starsn_peaks, NULL, NULL, 0)) { 650 // Don't care about this error 651 psErrorClear(); 658 psError(PS_ERR_UNKNOWN, false, "failed to measure SN / moments stats"); 659 psFree (stats); 660 psFree (starsn_peaks); 661 return false; 652 662 } 653 663 psLogMsg ("psModules.objects", 3, "SN range (peaks) : %f - %f (%ld)\n",
Note:
See TracChangeset
for help on using the changeset viewer.
