- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotApResid.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psphot
- Property svn:mergeinfo changed
/branches/pap/psphot (added) merged: 23580,23596,23646 /trunk/psphot merged: 23688,23692,23740,23790,23805,23808,23957,23978,23989,24029,24097,24144,24174,24187-24188,24203
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psphot/src
- Property svn:ignore
-
old new 16 16 polyfitTest 17 17 growthTest 18 psphotVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/psphot/src/psphotApResid.c
r21519 r24244 355 355 356 356 if (j > 2) { 357 bool status = true; 358 status &= psVectorStats (statsS, dASubset, NULL, mkSubset, 0xff); 359 status &= psVectorStats (statsM, dMSubset, NULL, mkSubset, 0xff); 360 if (!status) { psErrorClear (); } 357 if (!psVectorStats (statsS, dASubset, NULL, mkSubset, 0xff)) { 358 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 359 return false; 360 } 361 if (!psVectorStats (statsM, dMSubset, NULL, mkSubset, 0xff)) { 362 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 363 return false; 364 } 361 365 dSo->data.F32[i] = statsS->robustStdev; 362 366 dMo->data.F32[i] = statsM->sampleMean; 363 367 dRo->data.F32[i] = statsS->robustStdev / statsM->sampleMean; 364 // fprintf (stderr, "%d (%d) : sys: %f, phot: %f, rat: %f\n", i, j, dSo->data.F32[i], dMo->data.F32[i], dRo->data.F32[i]);365 368 } else { 366 369 dSo->data.F32[i] = NAN; … … 375 378 psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN); 376 379 if (!psVectorStats (stats, dRo, NULL, NULL, 0)) { 377 // XXX better testing of raised error 378 psErrorClear();380 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 381 return false; 379 382 } 380 383
Note:
See TracChangeset
for help on using the changeset viewer.
