Changeset 30335
- Timestamp:
- Jan 21, 2011, 11:32:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psphot/src/psphotChoosePSF.c
r30224 r30335 469 469 470 470 float fwhmMin = stats->sampleMean; // FWHM on minor axis 471 471 472 if (readout->parent) { 473 474 // we now have 2 possible measurements of the seeing : the PSF model based version and 475 // the Moments based value we need to define a definitive "CHIP.SEEING" value. This 476 // value is used by the PSF-matching programs (ppSub and ppStack). The moments-based 477 // value is probably more representative of the value needed by those tools (it is also 478 // more stable?) 479 float fwhmMajorMoments = psMetadataLookupF32(&status, readout->analysis, "IQ_FW1"); 480 float fwhmMinorMoments = psMetadataLookupF32(&status, readout->analysis, "IQ_FW1"); 481 472 482 pmChip *chip = readout->parent->parent; // Parent chip 473 483 psAssert(chip, "Cell should be attached to a chip."); 474 484 psMetadataItem *item = psMetadataLookup(chip->concepts, "CHIP.SEEING"); // Item with chip 475 item->data.F32 = 0.5 * (fwhmMaj + fwhmMin);485 item->data.F32 = 0.5 * (fwhmMajMoments + fwhmMinMoments); 476 486 } 477 487
Note:
See TracChangeset
for help on using the changeset viewer.
