GeoCoords#
- class core.obs_coords.GeoCoords(lon, lat, hgt=0.0)[source]#
Bases:
objectClass to represent geographics coordinates
- __init__(lon, lat, hgt=0.0)[source]#
Constructor of
GeoCoordsclass- Parameters:
lon (
float) – longitude in decimal degreeslat (
float) – latitude in decimal degreeshgt (
float) – height in meters above geoid or ellipsoid, defaults to 0
- __str__()[source]#
Transform the object in string
- Return type:
str- Returns:
String representation of coordinates
- toECEFCoords()[source]#
Convert geodetic coordinates to absolute ECEF
- Return type:
- Returns:
absolute ECEF coordinates
- toENUCoords(base)[source]#
Convert geodetic coordinates to local ENU coords
- Parameters:
base (
Union[ECEFCoords,GeoCoords]) – Base coordinates for conversion- Return type:
- Returns:
Converted coordinates
- toGeoCoords()[source]#
Artificial function to ensure point is GeoCoords
- Return type:
- Returns:
Copy of current object
- distanceTo(point)[source]#
Distance between two geodetic coordinates
- Parameters:
point (
GeoCoords) – Geographic coordinate- Return type:
float- Returns:
Distance
- distance2DTo(point)[source]#
2D Distance between two geodetic coordinates
- Parameters:
point (
GeoCoords) – Geographic coordinate- Return type:
float- Returns:
2D Distance
- elevationTo(point)[source]#
Elevation between two geodetic coordinates
- Parameters:
point (
GeoCoords) – Geographic coordinate- Return type:
float- Returns:
Elevation (in rad)
- azimuthTo(point)[source]#
Azimut between two geodetic coordinates
- Parameters:
point (
GeoCoords) – Geographic coordinate- Return type:
float- Returns:
Azimut (in rad)