Skip to content
Snippets Groups Projects
Commit 9853ee4d authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

BUG:avoid Nan number in noise computation

parent 231a23d9
No related branches found
No related tags found
No related merge requests found
......@@ -64,9 +64,11 @@ TerraSarCalibrationFunctor<TInput, TOutput>
// Get polynomial coefficients
std::vector<double> coefficients = m_NoiseRecord.get_polynomialCoefficients();
// Evaluate
double nebn = Horner (coefficients, deltaTau);
double nebn = 0.;
if ( !vnl_math_isnan(deltaTau) )
nebn = Horner (coefficients, deltaTau);
// Do not forget to multiply by the calibration factor
nebn *= m_CalibrationFactor;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment