GeoCoords#

class core.obs_coords.GeoCoords(lon, lat, hgt=0.0)[source]#

Bases: object

Class to represent geographics coordinates

__init__(lon, lat, hgt=0.0)[source]#

Constructor of GeoCoords class

Parameters:
  • lon (float) – longitude in decimal degrees

  • lat (float) – latitude in decimal degrees

  • hgt (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

copy()[source]#

TODO

Return type:

GeoCoords

toECEFCoords()[source]#

Convert geodetic coordinates to absolute ECEF

Return type:

ECEFCoords

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:

ENUCoords

Returns:

Converted coordinates

toGeoCoords()[source]#

Artificial function to ensure point is GeoCoords

Return type:

GeoCoords

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)

toProjCoords(srid_number)[source]#

Special function to convert to specific ENU srid

Parameters:

srid_number (int) – A SRID number describing projection coords (e.g. 2154 for Lambert 93)

Return type:

ENUCoords

Returns:

an ENUCoords object

getX()[source]#

Return the X coordinate

Return type:

float

getY()[source]#

Return the Y coordinate

Return type:

float

getZ()[source]#

Return the Z coordinate

Return type:

float

setX(X)[source]#

Set the X coordinate

Parameters:

X (float) – X coordinate

setY(Y)[source]#

Set the Y coordinate

Parameters:

Y (float) – Y coordinate

setZ(Z)[source]#

Set the Z coordinate

Parameters:

Z (float) – Z coordinate

plot(sym='ro')[source]#

TODO