IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15060


Ignore:
Timestamp:
Sep 27, 2007, 2:43:32 PM (19 years ago)
Author:
eugene
Message:

min I0 = 0.02

Location:
trunk/psphot/src
Files:
2 edited

Legend:

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

    r14655 r15060  
    3232
    3333    // if the object has a fitted peak below 0, the fit did not converge cleanly
    34     if (model->params->data.F32[1] <= 0) {
     34    // XXX this limit is fairly arbitrary, and must be > the value is the model limits
     35    if (model->params->data.F32[PM_PAR_I0] <= 0.02) {
    3536        source->mode |= PM_SOURCE_MODE_FAIL;
    3637        return false;
  • trunk/psphot/src/psphotEvalPSF.c

    r13804 r15060  
    104104    }
    105105
    106     // if the object has a fitted peak below 0, the fit did not converge cleanly
    107     if (model->params->data.F32[PM_PAR_I0] <= 0) {
     106    // if the object has a fitted peak below 0.02, the source is not viable
     107    // perhaps the fit did not converge cleanly
     108    if (model->params->data.F32[PM_PAR_I0] <= 0.02) {
    108109        source->mode |= PM_SOURCE_MODE_FAIL;
    109110        if (source->mode & PM_SOURCE_MODE_SATSTAR) {
Note: See TracChangeset for help on using the changeset viewer.