Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
diapotb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Remote Modules
diapotb
Commits
75295eb5
Commit
75295eb5
authored
6 years ago
by
Gaëlle USSEGLIO
Browse files
Options
Downloads
Patches
Plain Diff
BUG : M_PI instead of M_1_PI into SARDeramp filter
parent
7c62d1a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!8
Deramp
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/otbSARDerampImageFilter.txx
+2
-8
2 additions, 8 deletions
include/otbSARDerampImageFilter.txx
with
2 additions
and
8 deletions
include/otbSARDerampImageFilter.txx
+
2
−
8
View file @
75295eb5
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment