Changeset 42448 for trunk/psModules/src/detrend/pmNewNonLinear.c
- Timestamp:
- Apr 12, 2023, 5:15:20 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmNewNonLinear.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmNewNonLinear.c
r42338 r42448 39 39 // Calculate correction factor contribution for this pixel. 40 40 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 42 42 43 43 psF32 factor = psSpline1DEval (model, lFlux);
Note:
See TracChangeset
for help on using the changeset viewer.
