IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14758


Ignore:
Timestamp:
Sep 5, 2007, 12:09:09 PM (19 years ago)
Author:
eugene
Message:

do we have a PSF when making the rough class?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotReadout.c

    r14755 r14758  
    7979    psphotModelTest (config, view, recipe, maskVal, maskMark);
    8080
    81     // load the psf model, if suppled
    82     // XXX include code in here to save FWHM_X,FWHM_Y in the recipe
     81    // load the psf model, if suppled.  FWHM_X,FWHM_Y,etc are saved in the recipe
    8382    pmPSF *psf = psphotLoadPSF (config, view, recipe);
     83
     84    // several functions below behave differently if we have a PSF model already
     85    bool havePSF = (psf != NULL);
    8486   
    8587    // find the peaks in the image. 
     
    126128    }
    127129
    128     // use source classes to select PSF candidate stars (from PSF clump)?
    129     bool findPSFClump = (psf == NULL);
    130 
    131130    // classify sources based on moments, brightness
    132     if (!psphotRoughClass (sources, recipe, findPSFClump, maskSat)) {
     131    if (!psphotRoughClass (sources, recipe, havePSF, maskSat)) {
    133132        psLogMsg ("psphot", 3, "failed to find a valid PSF clump for image");
    134133        return psphotReadoutCleanup (config, readout, recipe, NULL, sources);
Note: See TracChangeset for help on using the changeset viewer.