IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2005, 10:26:59 AM (20 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/psModulesUtils.c

    r5772 r5802  
    6565    float sky = model->params->data.F32[0];
    6666
     67    *fitMag = 99.0;
     68    *obsMag = 99.0;
     69
    6770    pmModelFlux modelFluxFunc = pmModelFlux_GetFunction (model->type);
    6871    fitSum = modelFluxFunc (model->params);
     72    if (fitSum <= 0) return false;
     73    if (!isfinite(fitSum)) return false;
     74    *fitMag = -2.5*log10(fitSum);
    6975
    7076    for (int ix = 0; ix < image->numCols; ix++) {
     
    7581    }
    7682    if (obsSum <= 0) return false;
    77     if (fitSum <= 0) return false;
     83    *obsMag = -2.5*log10(obsSum);
    7884
    79     *fitMag = -2.5*log10(fitSum);
    80     *obsMag = -2.5*log10(obsSum);
    8185    return (true);
    8286}
Note: See TracChangeset for help on using the changeset viewer.