IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30335


Ignore:
Timestamp:
Jan 21, 2011, 11:32:52 AM (15 years ago)
Author:
eugene
Message:

CHIP.SEEING (used by ppSub and ppStack) should probably be based on moments, not PSF model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psphot/src/psphotChoosePSF.c

    r30224 r30335  
    469469
    470470    float fwhmMin = stats->sampleMean;  // FWHM on minor axis
     471
    471472    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
    472482        pmChip *chip = readout->parent->parent; // Parent chip
    473483        psAssert(chip, "Cell should be attached to a chip.");
    474484        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);
    476486    }
    477487
Note: See TracChangeset for help on using the changeset viewer.