transform2 (self,
x,
y,
z,
vx=0,
vy=0,
vz=0,
inverse=False,
factor=0.001,
**Vector_and_kwds)
|
|
Transform a (cartesian) position with velocities, forward or
inverse.
- Arguments:
x - X coordinate (meter ).
y - Y coordinate (meter ).
z - Z coordinate (meter ).
vx - X velocity (meter-per-year ).
vy - Y velocity (meter-per-year ).
vz - Z velocity (meter-per-year ).
inverse - If True , apply the inverse transform
(bool ).
factor - Factor to scale this Xform's rates
(scalar ), default from milli-meter- to
meter-per-year , from milli-arc- to
arc-seconds-per-year and from ppB- to
ppM-per-year .
Vector_and_kwds - An optional, (3-D) Vector=None or cartesian
class and additional Vector keyword arguments
to return the transformed position and the velocities.
- Returns:
- 2-Tuple
(position, velocities) , the tranformed
position and velocities , each a Vector3Tuple(x, y, z) unless some
Vector_and_kwds are specified.
- Raises:
TypeError - Non-scalar factor .
Note:
If this transform's Xform is missing, the returned
velocities are the given ones, un-transformed.
See Also:
Soler, T. & Snay, R.A. "Transforming Positions and
Velocities ...", equations (4) and (5) and HTDP functions
VTRANF and VTRANF_IERS in file HTDP/hdtp.f.
|