radar-coord-conversion-utility  0.8
RadarBeamCoord_util.hpp
Go to the documentation of this file.
1 
5 #ifndef __RADAR_BEAM_COORD_UTIL__
6 #define __RADAR_BEAM_COORD_UTIL__
7 
8 #include <math.h>
9 
10 #define DEG2RAD(a) a*M_PI/180. // degree to radiants
11 #define RAD2DEG(a) a*180.*M_1_PI // radiants to degree
12 #define KeA(a) 4./3.* a // WGS84 semimajor axis
13 
24  private:
27  float EarthRadius;
28  public:
33  RadarBeamCoord_util(float ea = 6378137.);
34  ~RadarBeamCoord_util() {};
35 
40  void setEarthRadius (float ea) ;
45  float getEarthRadius () ;
46 
47 // funzioni che non considerano altezza radar
48 
55  float elev_sd_2_beamHeight(float elev, float surfDistance);
63  float elev_sd_2_beamHeight(float elev, float surfDistance, float alt_rad);
64 
65 
72  float elev_br_2_beamHeight(float elev, float beamRange);
80  float elev_br_2_beamHeight(float elev, float beamRange, float alt_rad);
81 
82 
90  float elev_br_bh_2_surfDistance (float elev, float beamRange, float beamHeight);
99  float elev_br_bh_2_surfDistance (float elev, float beamRange, float beamHeight, float alt_rad);
100 
101 
108  float elev_br_2_surfDistance (float elev, float beamRange);
109 
110 
118  float elev_sd_bh_2_beamRange(float elev, float surfDistance, float beamHeight);
127  float elev_sd_bh_2_beamRange(float elev, float surfDistance, float beamHeight, float alt_rad);
128 
129 
136  float elev_sd_2_beamRange(float elev, float surfDistance);
137 
138 
145  float br_bh_2_elev(float beamRange, float beamHeight);
153  float br_bh_2_elev(float beamRange, float beamHeight, float alt_rad);
154 
155 
162  float ds_bh_2_elev(float surfDistance, float beamHeight);
170  float ds_bh_2_elev(float surfDistance, float beamHeight, float alt_rad);
171 
172 // duplico tutte le funzioni - qui considero anche l'altezza del radar
173 
174  //float elev_br_2_surfDistance (float elev, float beamRange, float alt_rad);
175  //float elev_sd_2_beamRange(float elev, float surfDistance, float alt_rad);
176 
177 };
178 
179 
180 #endif
Class to calculate elements related to radar coordinates.
Definition: RadarBeamCoord_util.hpp:23
float elev_sd_2_beamRange(float elev, float surfDistance)
Calculate the distance over the ray beam as a funcion of elevation and surface distance (over Earth s...
Definition: RadarBeamCoord_util.cpp:80
float elev_br_bh_2_surfDistance(float elev, float beamRange, float beamHeight)
Calculate Surface Distance (on Earth surface) as a funcion of elevation, ray-beam distance and beam h...
Definition: RadarBeamCoord_util.cpp:40
float br_bh_2_elev(float beamRange, float beamHeight)
Calculate elevation angle as a function of the distance over the ray beam and beam height (relative t...
Definition: RadarBeamCoord_util.cpp:88
float EarthRadius
Definition: RadarBeamCoord_util.hpp:27
float elev_sd_2_beamHeight(float elev, float surfDistance)
Calculate beam height (relative to radar height) as a funcion of elevation and surface distance.
Definition: RadarBeamCoord_util.cpp:8
float getEarthRadius()
Get the value tof private attribute EarthRadius.
Definition: RadarBeamCoord_util.cpp:5
void setEarthRadius(float ea)
Set private attribute EarthRadius used in some member functions.
Definition: RadarBeamCoord_util.cpp:4
float ds_bh_2_elev(float surfDistance, float beamHeight)
Calculate elevation angle as a function of the distance over Earth surface and beam height (relative ...
Definition: RadarBeamCoord_util.cpp:122
RadarBeamCoord_util(float ea=6378137.)
Constructor.
Definition: RadarBeamCoord_util.cpp:3
float elev_br_2_beamHeight(float elev, float beamRange)
Calculate beam height (relative to radar height) as a funcion of elevation and ray-beam distance.
Definition: RadarBeamCoord_util.cpp:24
float elev_br_2_surfDistance(float elev, float beamRange)
Calculate Surface Distance (on Earth surface) as a funcion of elevation and ray-beam distance.
Definition: RadarBeamCoord_util.cpp:55
float elev_sd_bh_2_beamRange(float elev, float surfDistance, float beamHeight)
Calculate the distance over the ray beam as a funcion of elevation, surface distance (over Earth surf...
Definition: RadarBeamCoord_util.cpp:64