nvector._core.n_EA_E_and_n_EB_E2p_AB_E¶
-
n_EA_E_and_n_EB_E2p_AB_E
(n_EA_E, n_EB_E, z_EA=0, z_EB=0, a=6378137, f=0.0033528106647474805, R_Ee=None)[source][source]¶ - Return the delta vector from position A to B.
Parameters: - n_EA_E, n_EB_E: 3 x n array
n-vector(s) [no unit] of position A and B, decomposed in E.
- z_EA, z_EB: 1 x n array
Depth(s) [m] of system A and B, relative to the ellipsoid. (z_EA = -height, z_EB = -height)
- 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: - p_AB_E: 3 x n array
Cartesian position vector(s) from A to B, decomposed in E.
Notes
The n-vectors for positions A (n_EA_E) and B (n_EB_E) are given. The output is the delta vector from A to B (p_AB_E). 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.