radar-coord-conversion-utility
0.8
|
Class to calculate point coordinates related to radar place and coordinates. More...
#include <radarcoordlib/RadarGeoCoord_util.hpp>
Public Member Functions | |
bool | AeqdCoords2GeoCoords () |
Compute geographic coordinates from Aeqd coordinates. More... | |
bool | calculateGeodesicParam () |
Calculate Earth distance and Azimuth from radar site to the point set. More... | |
virtual bool | fillCoords () |
Compute point coordinates for all Aeqd,Geographic and Geodesic systems. More... | |
bool | GeoCoords2AeqdCoords () |
Compute Aeqd coordinates fro Geographic coordinates. More... | |
float | getAntennaTowerHeight () |
get beam electromagnetic focus height above surface value More... | |
float | getAzimuth () |
Get Azimuth of geodetic between radar site and point. More... | |
float | getHeightR () |
get radar height above msl value More... | |
float | getLatR () |
get radar latitude value More... | |
float | getLonR () |
get radar longitude value More... | |
float | getPointLat () |
Get point latitude. More... | |
float | getPointLon () |
Get point longitude. More... | |
float | getPointXCoord () |
Get point X coordinate (Aeqd projection centred on radar site) More... | |
float | getPointYCoord () |
Get point y coordinate (Aeqd projection centred on radar site) More... | |
float | getSurfaceDistance () |
Get distance on the Earth surface. More... | |
bool | invertGeodesicCalculation () |
Calculate geographic and gnomonic coordinates from Earth distance and Azimuth. More... | |
bool | isAzimuthSet () |
Check if geodetic Azimuth is set. More... | |
bool | isGeodesicCoordsSet () |
Check if point Geodetic coordinates are set. More... | |
bool | isPointAeqdCoordsSet () |
Check if point Aeqd coordinates are valid. More... | |
bool | isPointGeoCoordsSet () |
Check if point Geographic coordinates are valid. More... | |
bool | isPointLatitudeSet () |
Check if point latitude is valid and set. More... | |
bool | isPointLongitudeSet () |
Check if point longitude is valid and set. More... | |
bool | isPointXCoordSet () |
Check if point X coordinate is valid. More... | |
bool | isPointYCoordSet () |
Check if point Y coordinate is valid. More... | |
bool | isSurfaceDistanceSet () |
Check if. More... | |
RadarGeoCoord_util () | |
Constructor. More... | |
RadarGeoCoord_util (float latr, float lonr, float heightr, float aTH) | |
Constructor with radar coordinates passed Point coordinates are set to missing value. More... | |
virtual void | setPoint2Missing () |
Set Point coordinates to missing. More... | |
void | setPointAeqdCoords (float X, float Y, bool cleanOtherCoords=true) |
Set Aeqd coordinates (Aeqd projection centred on radar site) More... | |
void | setPointGeoCoords (float lat, float lon, bool cleanOtherCoords=true) |
Set point geographic coordinates. More... | |
void | setPointGeodesicCoordinate (float Azimuth, float SurfaceDist, bool cleanOtherCoords=true) |
Set Geodesic coordinate (Azimuth, Surface distance) More... | |
void | setRadarCoord (float latr, float lonr, float heightr, float aTH, bool cleanPointCoord=true) |
Set radar coordinates. More... | |
Protected Member Functions | |
void | setAntennaTowerHeight (float value) |
set beam electromagnetic focus height above surface value More... | |
void | setAzimuth (float value) |
Set Azimuth of geodetic between radar site and point. More... | |
void | setHeightR (float value) |
set radar height above msl value More... | |
void | setLatR (float value) |
set radar latitude value More... | |
void | setLonR (float value) |
set radar longitude value More... | |
void | setPointLat (float value) |
Set point latitude. More... | |
void | setPointLon (float value) |
Set point longitude. More... | |
void | setPointXCoord (float value) |
Set point X coordinate (Aeqd projection centred on radar site) More... | |
void | setPointYCoord (float value) |
Set point y coordinate (Aeqd projection centred on radar site) More... | |
void | setSurfaceDistance (float value) |
Set distance on the Earth surface. More... | |
Protected Attributes | |
float | Azimuth |
float | Lat_p |
float | Lon_p |
RadarSite | radar_site |
float | surfaceDistance |
float | Xcoord_p |
float | Ycoord_p |
Class to calculate point coordinates related to radar place and coordinates.
This class compute (back and for) Earth coordinate calculations of a single point
related to radar position.
The point coordinate could be passed as one of the following options:
RadarGeoCoord_util::RadarGeoCoord_util | ( | ) |
Constructor.
Inizialize radar site coordinates at
Lat : 0. N - Lon : 0. E - Height : 0. m - Antennatower height : 0. m
Point coordinates are set to missing value
RadarGeoCoord_util::RadarGeoCoord_util | ( | float | latr, |
float | lonr, | ||
float | heightr, | ||
float | aTH | ||
) |
Constructor with radar coordinates passed Point coordinates are set to missing value.
latr | - Radar site Latitude |
lonr | - Radar site Longitude |
heightr | - Height above the msl of radar site (antenna tower not included) |
aTH | - Height of the electric antenna focus related above the surface |
bool RadarGeoCoord_util::AeqdCoords2GeoCoords | ( | ) |
Compute geographic coordinates from Aeqd coordinates.
bool RadarGeoCoord_util::calculateGeodesicParam | ( | ) |
Calculate Earth distance and Azimuth from radar site to the point set.
One of Aeqd or Geographic coords should be set Detail description
Geodesic parameters are calculate based on GeographicLib available at http://sourceforge.net/projects/geographiclib/
|
virtual |
Compute point coordinates for all Aeqd,Geographic and Geodesic systems.
Reimplemented in RadarPoint_util.
bool RadarGeoCoord_util::GeoCoords2AeqdCoords | ( | ) |
Compute Aeqd coordinates fro Geographic coordinates.
float RadarGeoCoord_util::getAntennaTowerHeight | ( | ) |
get beam electromagnetic focus height above surface value
float RadarGeoCoord_util::getAzimuth | ( | ) |
Get Azimuth of geodetic between radar site and point.
float RadarGeoCoord_util::getHeightR | ( | ) |
get radar height above msl value
float RadarGeoCoord_util::getLatR | ( | ) |
get radar latitude value
float RadarGeoCoord_util::getLonR | ( | ) |
get radar longitude value
float RadarGeoCoord_util::getPointLat | ( | ) |
Get point latitude.
float RadarGeoCoord_util::getPointLon | ( | ) |
Get point longitude.
float RadarGeoCoord_util::getPointXCoord | ( | ) |
Get point X coordinate (Aeqd projection centred on radar site)
float RadarGeoCoord_util::getPointYCoord | ( | ) |
Get point y coordinate (Aeqd projection centred on radar site)
float RadarGeoCoord_util::getSurfaceDistance | ( | ) |
Get distance on the Earth surface.
bool RadarGeoCoord_util::invertGeodesicCalculation | ( | ) |
Calculate geographic and gnomonic coordinates from Earth distance and Azimuth.
Detail description
Invert Geodesic calculation are based on GeographicLib available at http://sourceforge.net/projects/geographiclib/
bool RadarGeoCoord_util::isAzimuthSet | ( | ) |
Check if geodetic Azimuth is set.
bool RadarGeoCoord_util::isGeodesicCoordsSet | ( | ) |
Check if point Geodetic coordinates are set.
bool RadarGeoCoord_util::isPointAeqdCoordsSet | ( | ) |
Check if point Aeqd coordinates are valid.
bool RadarGeoCoord_util::isPointGeoCoordsSet | ( | ) |
Check if point Geographic coordinates are valid.
bool RadarGeoCoord_util::isPointLatitudeSet | ( | ) |
Check if point latitude is valid and set.
bool RadarGeoCoord_util::isPointLongitudeSet | ( | ) |
Check if point longitude is valid and set.
bool RadarGeoCoord_util::isPointXCoordSet | ( | ) |
Check if point X coordinate is valid.
bool RadarGeoCoord_util::isPointYCoordSet | ( | ) |
Check if point Y coordinate is valid.
bool RadarGeoCoord_util::isSurfaceDistanceSet | ( | ) |
Check if.
|
protected |
set beam electromagnetic focus height above surface value
value | - Height of the electric antenna focus related above the surface |
RadarCoordBadDataException | - if value passed if outsite [0, +100] |
|
protected |
Set Azimuth of geodetic between radar site and point.
[in] | value | Azimuth (degree from North clockwise) |
|
protected |
set radar height above msl value
[in] | value | - Height above the msl of radar site (antenna tower not included) |
|
protected |
set radar latitude value
[in] | value | - Radar site Latitude |
RadarCoordBadDataException | - if value passed if outsite [-90, +90] |
|
protected |
set radar longitude value
[in] | value | - Radar site Longitude |
RadarCoordBadDataException | - if value passed if outsite [-180, +180] |
|
virtual |
Set Point coordinates to missing.
Reimplemented in RadarPoint_util.
void RadarGeoCoord_util::setPointAeqdCoords | ( | float | X, |
float | Y, | ||
bool | cleanOtherCoords = true |
||
) |
Set Aeqd coordinates (Aeqd projection centred on radar site)
[in] | X | - x coordinate (meter) |
[in] | Y | - y coordinate (meter) |
[in] | cleanOtherCoords | If true Geodesic and Geographic coordinate will be unset. |
void RadarGeoCoord_util::setPointGeoCoords | ( | float | lat, |
float | lon, | ||
bool | cleanOtherCoords = true |
||
) |
Set point geographic coordinates.
[in] | lat | - latitude (degree N) |
[in] | lon | - longitude (degree E) |
[in] | cleanOtherCoords | If true Geodesic and Aeqd coordinate will be unset. |
void RadarGeoCoord_util::setPointGeodesicCoordinate | ( | float | Azimuth, |
float | SurfaceDist, | ||
bool | cleanOtherCoords = true |
||
) |
Set Geodesic coordinate (Azimuth, Surface distance)
[in] | Azimuth | direction from radar site (Degree N) |
[in] | SurfaceDist | distance over the Earth surface between radar site and Earth point |
[in] | cleanOtherCoords | If true Aeqd and Geographic coordinate will be unset. |
|
protected |
Set point latitude.
[in] | value | - latitude (degree N) |
RadarCoordBadDataException | if value passed if outsite [-90, +90] |
|
protected |
Set point longitude.
[in] | value | - longitude (degree E) |
RadarCoordBadDataException | if value passed if outsite [-180, +180] |
|
protected |
Set point X coordinate (Aeqd projection centred on radar site)
[in] | value | - x coordinate (meter) |
|
protected |
Set point y coordinate (Aeqd projection centred on radar site)
[in] | value | - y coordinate (meter) |
void RadarGeoCoord_util::setRadarCoord | ( | float | latr, |
float | lonr, | ||
float | heightr, | ||
float | aTH, | ||
bool | cleanPointCoord = true |
||
) |
Set radar coordinates.
[in] | latr | Radar site Latitude |
[in] | lonr | Radar site Longitude |
[in] | heightr | Height above the msl of radar site (antenna tower not included) |
[in] | aTH | Height of the electric antenna focus related above the surface |
[in] | cleanPointCoord | if true all point coordinate are cleaned |
|
protected |
Set distance on the Earth surface.
[in] | value | distance over Earth surface (meter) |
|
protected |
Azimuth
Azimuth form north of the geodetic line at the radar site
|
protected |
Lat_p
Latitude coordinate for the point evaluated
|
protected |
Lon_p
Longitude coordinate for the point evaluated
|
protected |
Radar_site
Radar site coordinate
|
protected |
surfaceDistance
Distance between radar and point on the geodetic line
|
protected |
Xcoord_p
Aeqd X coordinate value for the point evaluated
|
protected |
Ycoord_p
Aeqd Y coordinate value for the point evaluated