nvector._core.p_EB_E2n_EB_E¶
-
p_EB_E2n_EB_E
(p_EB_E, a=6378137, f=0.0033528106647474805, R_Ee=None)[source][source]¶ - Converts Cartesian position vector in meters to n-vector.
Parameters: - p_EB_E: 3 x n array
Cartesian position vector(s) from E to B, decomposed in E.
- a: real scalar, default WGS-84 ellipsoid.
Semi-major axis of the Earth ellipsoid given in [m].
- f: real scalar, default WGS-84 ellipsoid.
Flattening [no unit] of the Earth ellipsoid. If f==0 then spherical Earth with radius a is used in stead of WGS-84.
- R_Ee : 3 x 3 array
rotation matrix defining the axes of the coordinate frame E.
Returns: - n_EB_E: 3 x n array
n-vector(s) [no unit] of position B, decomposed in E.
- depth: 1 x n array
Depth(s) [m] of system B, relative to the ellipsoid (depth = -height)
Notes
The position of B (typically body) relative to E (typically Earth) is given into this function as cartesian position vector p_EB_E, in meters. (“ECEF-vector”). The function converts to n-vector, n_EB_E and its depth, depth. The calculation is excact, taking the ellipsity of the Earth into account. It is also non-singular as both n-vector and p-vector are non-singular (except for the center of the Earth). The default ellipsoid model used is WGS-84, but other ellipsoids/spheres might be specified.