ECEFCoords#

class core.obs_coords.ECEFCoords(X, Y, Z)[source]#

Bases: object

Class to represent Earth-Centered-Earth-Fixed coordinates

__init__(X, Y, Z)[source]#

Constructor of ECEFCoords class

Parameters:
  • X (float) – X corrdinate (meters)

  • Y (float) – Y corrdinate (meters)

  • Z (float) – Z corrdinate (meters)

__str__()[source]#

Transform the object in string

Return type:

str

Returns:

String representation of coordinates

copy()[source]#

Copy the current object

Return type:

ECEFCoords

Returns:

A copy of current object

toGeoCoords()[source]#

Convert absolute geocentric coords to geodetic longitude, latitude and height

Return type:

GeoCoords

Returns:

GeoCoords representation of current coordinates

toENUCoords(base)[source]#

Convert local coordinates to absolute geocentric

Parameters:

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

Return type:

ENUCoords

Returns:

Transformed coordinates

toECEFCoords()[source]#

Artificial function to ensure point is ECEFCoords

Return type:

ECEFCoords

Returns:

ECEFCoords

elevationTo(point)[source]#

Elevation between two ECEF coordinates

Parameters:

point (ECEFCoords) – Coordinate 2

Return type:

float

Returns:

Elevation (rad)

azimuthTo(point)[source]#

Azimut between two ECEF coordinates

Parameters:

point (ECEFCoords) – Coordinate 2

Return type:

float

Returns:

Azimuth (rad)

dot(point)[source]#

Dot product between two vectors

norm()[source]#

R^3 space euclidian norm of point

Return type:

float

Returns:

R^3 space euclidian norm

scalar(factor)[source]#

Scalar multiplication of a vector

Parameters:

factor (float) – Multiplication factor

distanceTo(point)[source]#

Distance between two ECEF coordinates

Parameters:

point (ECEFCoords) – Corrdinate 2

Return type:

float

Returns:

Distance (meters)

getX()[source]#

Return the X coordinate

Return type:

float

getY()[source]#

Return the X coordinate

Return type:

float

getZ()[source]#

Return the X 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