Changeset 23989 for trunk/psphot/src/psphotChoosePSF.c
- Timestamp:
- Apr 28, 2009, 11:21:56 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotChoosePSF.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotChoosePSF.c
r21183 r23989 361 361 362 362 psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEAN | PS_STAT_SAMPLE_STDEV | PS_STAT_SAMPLE_QUARTILE); 363 psVectorStats (stats, fwhmMajor, NULL, NULL, 0); 363 if (!psVectorStats (stats, fwhmMajor, NULL, NULL, 0)) { 364 psError(PS_ERR_UNKNOWN, false, "failure to measure stats for FWHM MAJOR"); 365 return false; 366 } 367 364 368 psMetadataAddF32 (recipe, PS_LIST_TAIL, "FWHM_MAJ", PS_META_REPLACE, "PSF FWHM Major axis (mean)", stats->sampleMean); 365 369 psMetadataAddF32 (recipe, PS_LIST_TAIL, "FW_MJ_SG", PS_META_REPLACE, "PSF FWHM Major axis (sigma)", stats->sampleStdev); … … 367 371 psMetadataAddF32 (recipe, PS_LIST_TAIL, "FW_MJ_UQ", PS_META_REPLACE, "PSF FWHM Major axis (upper quartile)", stats->sampleUQ); 368 372 369 psVectorStats (stats, fwhmMinor, NULL, NULL, 0); 373 if (!psVectorStats (stats, fwhmMinor, NULL, NULL, 0)) { 374 psError(PS_ERR_UNKNOWN, false, "failure to measure stats for FWHM MINOR"); 375 return false; 376 } 370 377 psMetadataAddF32 (recipe, PS_LIST_TAIL, "FWHM_MIN", PS_META_REPLACE, "PSF FWHM Minor axis (mean)", stats->sampleMean); 371 378 psMetadataAddF32 (recipe, PS_LIST_TAIL, "FW_MN_SG", PS_META_REPLACE, "PSF FWHM Minor axis (sigma)", stats->sampleStdev);
Note:
See TracChangeset
for help on using the changeset viewer.
