ntw_to_r
- ssapy.utils.ntw_to_r(r, v, ntw, relative=False)[source][source]
Convert NTW coordinates to cartesian coordinates, using r, v to define NTW system.
Tis the projection along velocity, tangent to the track.Wis the projection alongV cross r, normal to the orbital plane.Nis the in-plane projection perpendicular toT.- Parameters:
r (array_like (n, 3)) – central positions defining coordinate system
v (array_like (n, 3)) – velocity defining coordinate system
ntw (array_like (n, 3)) – ntw coordinates to transform to cartesian coordinates
relative (bool) – if True, just rotate the NTW coordinates to Cartesian; do not offset the origin so that NTW = 0 -> Cartesian r.
- Returns:
r – cartesian x, y, z coordinates
- Return type:
array_like (n, 3)