Convert n-vector to cartesian position vector in metersSource:
The function converts the position of B (typically body) relative to E (typically Earth),
n_EB_E to cartesian position vector ("ECEF-vector"),
n-vector of position B, decomposed in E (3x1 vector) (no unit)
Depth of system B, relative to the ellipsoid (z_EB = -height) (m, default 0)
Semi-major axis of the Earth ellipsoid (m, default [WGS-84] 6378137)
Flattening of the Earth ellipsoid (no unit, default [WGS-84] 1/298.257223563)
The calculation is exact, taking the ellipticity of the Earth into account.
It is also nonsingular as both n-vector and p-vector are nonsingular
(except for the center of the Earth).
The default ellipsoid model used is WGS-84, but other ellipsoids (or spheres) might be specified
via the optional parameters
Kenneth Gade A Nonsingular Horizontal Position Representation. The Journal of Navigation, Volume 63, Issue 03, pp 395-417, July 2010.