IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2005, 10:26:59 AM (21 years ago)
Author:
eugene
Message:

clean up of small accounting bugs, adding the post-subtraction ApResid

File:
1 edited

Legend:

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

    r5772 r5802  
    9494
    9595    // if the object has a fitted peak below 0, the fit did not converge cleanly
    96     if (model->params->data.F32[1] < 0) {
     96    if (model->params->data.F32[1] <= 0) {
    9797        source->mode |= PM_SOURCE_FAIL;
    9898        return false;
     
    125125    if (keep) return true;
    126126
    127     // this source is not a star, unflag as PSFSTAR
    128     // XXX : if this object was used to build the PSF, this flag should
    129     //       be set even if the object is not a star...
     127    // this source is not a star, warn if it was a PSFSTAR
    130128    if (source->mode & PM_SOURCE_PSFSTAR) {
    131         source->mode &= ~PM_SOURCE_PSFSTAR;
    132         psLogMsg ("psphot", 5, "PSFSTAR demoted based on fit quality\n");
     129        psphotSaveImage (NULL, source->pixels, "failpx.fits");
     130        psphotSaveImage (NULL, source->mask, "failmk.fits");
     131        psphotSaveImage (NULL, source->weight, "failwt.fits");
     132        psLogMsg ("psphot", 5, "PSFSTAR demoted based on fit quality   (%f, %f  :  %f %f %f %f)\n",
     133                  model->params->data.F32[2], model->params->data.F32[3], nSx, nSy, SN, Chi);
    133134    }
    134135
Note: See TracChangeset for help on using the changeset viewer.