IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 7, 2012, 10:06:48 AM (14 years ago)
Author:
eugene
Message:

when growing the CR mask, copy the values into the existing readout->mask array, otherwise we lose the association to source->maskView; mask a small region for sources that have already been detected (the exclusion radius is curretnly set to 4 pixels, and is not user-specified; deactivate some test code; saturate linear fit fluxes to min valid flux (probably superfluous); calls to psphotFitSourcesLinear in psphotReadout should skip negative fluxes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120905/psphot/src/psphotFitSourcesLinear.c

    r34404 r34415  
    439439        model->params->data.F32[PM_PAR_I0] = norm->data.F32[i];
    440440        model->dparams->data.F32[PM_PAR_I0] = errors->data.F32[i];
     441
     442        if (norm->data.F32[i] < MIN_VALID_FLUX) {
     443          fprintf (stderr, "fit out of bounds for %f,%f : %f\n", source->peak->xf, source->peak->yf, norm->data.F32[i]);
     444          model->params->data.F32[PM_PAR_I0] = MIN_VALID_FLUX;
     445        }
    441446
    442447        // clear the 'mark' pixels so the subtraction covers the full window
Note: See TracChangeset for help on using the changeset viewer.