ENUCoords#

class core.obs_coords.ENUCoords(E, N, U=0)[source]#

Bases: object

Class for representation of local projection (East, North, Up)

__epsilon = 0.0001#
__init__(E, N, U=0)[source]#

Constructor of class:ENUCoords class

Parameters:
  • E (float) – East coordinate (in meters)

  • N (float) – North coordinate (in meters)

  • U (float) – Elevation (in meter), defaults to 0

__str__()[source]#

Transform the object in string

Returns:

String representation of coordinates

copy()[source]#

Copy the current object

Return type:

ENUCoords

Returns:

A copy of current object

toECEFCoords(base)[source]#

Convert local planimetric to absolute geocentric

Parameters:

base (Union[ECEFCoords, GeoCoords]) – Base coordinates

Return type:

ECEFCoords

Returns:

Transformet coordinates

toGeoCoords(base)[source]#

Convert local ENU coordinates to geo coords

Parameters:

base (Union[ECEFCoords, GeoCoords]) – Base coordinates

Return type:

GeoCoords

Returns:

Transformed coordinates

toENUCoords(base1, base2)[source]#

Convert local ENU coordinates relative to base1 to local ENU coordinates relative to base2.

Parameters:
Return type:

ENUCoords

Returns:

Transformed coordinates

norm2D()[source]#

Planimetric euclidian norm of point

Return type:

float

Returns:

Euclidian norm

norm()[source]#

R^3 space euclidian norm of point

Return type:

float

Returns:

R^3 space euclidian norm of point

dot(point)[source]#

Dot product between two vectors

Parameters:

point – [description]

Returns:

[description]

elevationTo(point)[source]#

Elevation between two ENU coordinates

Parameters:

point (ENUCoords) – A ENUCoordinate

Return type:

float

Returns:

Elevation (in rad)

azimuthTo(point)[source]#

Azimut between two ENU coordinates

Parameters:

point (ENUCoords) – A ENUCoordinate

Return type:

float

Returns:

Azimut (in rad)

distance2DTo(point)[source]#

Distance 2D between two ENU coordinates

Parameters:

point (ENUCoords) – A ENU coordinate

Return type:

float

Returns:

2D distance

distanceTo(point)[source]#

Distance 3D between two ENU coordinates

Parameters:

point (ENUCoords) – A ENU coordinate

Return type:

float

Returns:

2D distance

rotate(theta)[source]#

Rotation (2D) of point

Parameters:

theta (float) – Angle of rotation (in rad)

scale(h)[source]#

Homotehtic transformation (2D) of point

Parameters:

h (float) – factor

translate(tx, ty, tz=0)[source]#

Translation (3D) of point

Parameters:
  • tx (float) – X translation

  • ty (float) – Y translation

  • tz (float) – Z translation, defaults to 0

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