Skip to content
Snippets Groups Projects
Commit 75295eb5 authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
Browse files

BUG : M_PI instead of M_1_PI into SARDeramp filter

parent 7c62d1a2
No related branches found
No related tags found
1 merge request!8Deramp
......@@ -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)
......
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