From 75295eb5618dd7856f69583f4d74ff6b469a62a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABlle=20USSEGLIO?= <gaelle.usseglio@cnes.fr> Date: Mon, 3 Dec 2018 16:55:09 +0000 Subject: [PATCH] BUG : M_PI instead of M_1_PI into SARDeramp filter --- include/otbSARDerampImageFilter.txx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/otbSARDerampImageFilter.txx b/include/otbSARDerampImageFilter.txx index fcf4204..f8fc6cb 100644 --- a/include/otbSARDerampImageFilter.txx +++ b/include/otbSARDerampImageFilter.txx @@ -42,12 +42,6 @@ using ossimplugins::time::microseconds; using ossimplugins::time::seconds; #endif -#ifndef M_1_PI -#define M_1_PI 0.31830988618379067154 -#endif - - - namespace otb { /** @@ -308,7 +302,7 @@ namespace otb // Get some metadata double aziSteeringRate = std::stod(inputKWL.GetMetadataByKey("support_data.azimuth_steering_rate")); // Conversion to radians per seconds - aziSteeringRate *= (M_1_PI/180); + aziSteeringRate *= (M_PI/180); m_FirstAziTime = ossimplugins::time::toModifiedJulianDate((inputKWL.GetMetadataByKey("support_data.first_line_time"))); m_FirstRangeTime = std::stod(inputKWL.GetMetadataByKey("support_data.slant_range_to_first_pixel")); @@ -398,7 +392,7 @@ namespace otb double Kt = (this->applyFMRateCoefs(index[0]) * m_Ks) / (this->applyFMRateCoefs(index[0]) - m_Ks); // Phi - double Phi = - M_1_PI * Kt * (aziTime -refTime)*(aziTime -refTime); + double Phi = - M_PI * Kt * (aziTime -refTime)*(aziTime -refTime); // Deramping or Reramping if (!m_DerampMode) -- GitLab