IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42448


Ignore:
Timestamp:
Apr 12, 2023, 5:15:20 PM (3 years ago)
Author:
eugene
Message:

do not allow negative fluxes to introduce NAN values in the correction factor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmNewNonLinear.c

    r42338 r42448  
    3939            // Calculate correction factor contribution for this pixel.
    4040            psF32 flux = image->data.F32[i][j];
    41             psF32 lFlux = log10(flux);
     41            psF32 lFlux = (flux > 1.0) ? log10(flux) : 0.0; // do not introduce NANs for negative flux
    4242           
    4343            psF32 factor = psSpline1DEval (model, lFlux);
Note: See TracChangeset for help on using the changeset viewer.