dca2enu#

ahrs.common.frames.dca2enu(down: float, cross: float, above: float, angle: float, deg: bool = True) ndarray#

Transform the down-cross-above (DCA) Cartesian coordinates specified by down, cross, and above to the local east-north-up (ENU) system [SHHS20].

The conversion is given by:

\[\begin{split}\begin{bmatrix}e \\ n \\ u\end{bmatrix} = \begin{bmatrix} \sin\theta & -\cos\theta & 0 \\ \cos\theta & \sin\theta & 0 \\ 0 & 0 & 1 \end{bmatrix} \begin{bmatrix}d \\ c \\ a\end{bmatrix}\end{split}\]
Parameters:
  • down (float) – X-coordinate of a point in the DCA system.

  • cross (float) – Y-coordinate of a point in the DCA system.

  • above (float) – Z-coordinate of a point in the DCA system.

  • angle (float) – Angle measured clockwise from North.

  • deg (bool, default: True) – If True, angles are given in degrees. Otherwise, they are in radians.

Returns:

enu – ENU Cartesian coordinates [east, north, up].

Return type:

numpy.ndarray