IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 16, 2010, 10:03:48 PM (16 years ago)
Author:
Paul Price
Message:

Add concept CHIP.SEEING (seeing FWHM in pixels) for easy transport of this value. It's used in ppSub for the parameter scaling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubMatchPSFs.c

    r26936 r26971  
    144144    psAssert (refSources, "missing refSources?");
    145145
    146     float inFWHM = subImagePSF(data, inRO, inSources); // FWHM for input
    147     float refFWHM = subImagePSF(data, refRO, refSources); // FWHM for reference
    148 
     146    float inFWHM = psMetadataLookupF32(NULL, inRO->parent->parent->analysis, "CHIP.SEEING"); // FWHM for input
     147    if (!isfinite(inFWHM)) {
     148        inFWHM = subImagePSF(data, inRO, inSources);
     149    }
     150    float refFWHM = psMetadataLookupF32(NULL, refRO->parent->parent->analysis, "CHIP.SEEING"); // FWHM for ref
     151    if (!isfinite(refFWHM)) {
     152        refFWHM = subImagePSF(data, refRO, refSources);
     153    }
    149154    psLogMsg("ppSub", PS_LOG_INFO, "Input FWHM: %f\nReference FWHM: %f\n", inFWHM, refFWHM);
    150155    if (!isfinite(inFWHM) || !isfinite(refFWHM)) {
Note: See TracChangeset for help on using the changeset viewer.