IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15231


Ignore:
Timestamp:
Oct 5, 2007, 3:36:22 PM (19 years ago)
Author:
Paul Price
Message:

Turned off psphotApResid in psphot for when there's a provided PSF ---
the known PSF should have a known aperture residual.

File:
1 edited

Legend:

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

    r15128 r15231  
    140140    if (psf == NULL) {
    141141        // use bright stellar objects to measure PSF
    142         // XXX if we do not have enough stars to generate the PSF, build one
    143         // from the SEEING guess and model class
     142        // XXX if we do not have enough stars to generate the PSF, build one
     143        // from the SEEING guess and model class
    144144        psf = psphotChoosePSF (readout, sources, recipe, maskVal, maskMark);
    145145        if (psf == NULL) {
     
    147147            return psphotReadoutCleanup (config, readout, recipe, psf, sources);
    148148        }
    149         havePSF = true;
     149        havePSF = true;
    150150    }
    151151
     
    268268
    269269    // measure aperture photometry corrections
    270     if (!psphotApResid (readout, sources, recipe, psf, maskVal, maskMark)) {
     270    if (!havePSF && !psphotApResid (readout, sources, recipe, psf, maskVal, maskMark)) {
    271271        psTrace ("psphot", 4, "failure on psphotApResid");
    272272        psError(PSPHOT_ERR_PHOTOM, false, "Measure aperture photometry corrections");
Note: See TracChangeset for help on using the changeset viewer.