nvector package

Geodesic functions

lat_lon2n_E(latitude, longitude[, R_Ee]) Converts latitude and longitude to n-vector.
n_E2lat_lon(n_E[, R_Ee]) Converts n-vector to latitude and longitude.
n_EB_E2p_EB_E(n_EB_E[, depth, a, f, R_Ee]) Converts n-vector to Cartesian position vector in meters.
p_EB_E2n_EB_E(p_EB_E[, a, f, R_Ee]) Converts Cartesian position vector in meters to n-vector.
n_EA_E_and_n_EB_E2p_AB_E(n_EA_E, n_EB_E[, ...]) Return the delta vector from position A to B.
n_EA_E_and_p_AB_E2n_EB_E(n_EA_E, p_AB_E[, ...]) Return position B from position A and delta.
n_EA_E_and_n_EB_E2azimuth(n_EA_E, n_EB_E[, ...]) Return azimuth from A to B, relative to North:
n_EA_E_distance_and_azimuth2n_EB_E(n_EA_E, ...) Return position B from azimuth and distance from position A
great_circle_distance(n_EA_E, n_EB_E[, radius]) Return great circle distance between two positions
euclidean_distance(n_EA_E, n_EB_E[, radius]) Return Euclidean distance between two positions
mean_horizontal_position(n_EB_E) Return the n-vector of the horizontal mean position.

Rotation matrices and angles

n_E2R_EN(n_E[, R_Ee]) Returns the rotation matrix R_EN from n-vector.
n_E_and_wa2R_EL(n_E, wander_azimuth[, R_Ee]) Returns rotation matrix R_EL from n-vector and wander azimuth angle.
R_EL2n_E(R_EL) Returns n-vector from the rotation matrix R_EL.
R_EN2n_E(R_EN) Returns n-vector from the rotation matrix R_EN.
R2xyz(R_AB) Returns the angles about new axes in the xyz-order from a rotation matrix.
R2zyx(R_AB) Returns the angles about new axes in the zxy-order from a rotation matrix.
xyz2R(x, y, z) Returns rotation matrix from 3 angles about new axes in the xyz-order.
zyx2R(z, y, x) Returns rotation matrix from 3 angles about new axes in the zyx-order.

Misc functions

nthroot(x, n) Return the n’th root of x to machine precision
deg(rad_angle) Converts angle in radians to degrees.
rad(deg_angle) Converts angle in degrees to radians.
unit(vector[, norm_zero_vector]) Convert input vector to a vector of unit length.

OO interface to Geodesic functions

FrameE([a, f, name, axes]) Earth-fixed frame
FrameN(position) North-East-Down frame
FrameL(position[, wander_azimuth]) Local level, Wander azimuth frame
FrameB(position[, yaw, pitch, roll, degrees]) Body frame
ECEFvector(pvector[, frame]) Geographical position given as Cartesian position vector in frame E
GeoPoint(latitude, longitude[, z, frame, ...]) Geographical position given as latitude, longitude, depth in frame E
Nvector(normal[, z, frame]) Geographical position given as n-vector and depth in frame E
GeoPath(positionA, positionB) Geographical path between two positions in Frame E
Pvector(pvector, frame)
diff_positions(positionA, positionB) Return delta vector from positions A to B.