IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30423


Ignore:
Timestamp:
Jan 28, 2011, 3:30:18 PM (15 years ago)
Author:
eugene
Message:

set CHIP.SEEING based on the moments analysis

File:
1 edited

Legend:

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

    r30335 r30423  
    477477        // value is probably more representative of the value needed by those tools (it is also
    478478        // more stable?)
     479        bool status = false;
    479480        float fwhmMajorMoments = psMetadataLookupF32(&status, readout->analysis, "IQ_FW1");
    480481        float fwhmMinorMoments = psMetadataLookupF32(&status, readout->analysis, "IQ_FW1");
     
    483484        psAssert(chip, "Cell should be attached to a chip.");
    484485        psMetadataItem *item = psMetadataLookup(chip->concepts, "CHIP.SEEING"); // Item with chip
    485         item->data.F32 = 0.5 * (fwhmMajMoments + fwhmMinMoments);
     486        item->data.F32 = 0.5 * (fwhmMajorMoments + fwhmMinorMoments);
     487
     488        psLogMsg ("psphot", PS_LOG_DETAIL, "fwhm (psf): %f,%f (moments): %f,%f", fwhmMaj, fwhmMin, fwhmMajorMoments, fwhmMinorMoments);
    486489    }
    487490
Note: See TracChangeset for help on using the changeset viewer.