1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
use crate;
use cratefk5hip;
use crate;
/// Transform FK5 (J2000.0) star data into the Hipparcos system.
///
/// Status: support function.
///
/// Given (all FK5, equinox J2000.0, epoch J2000.0):
/// r5 f64 RA (radians)
/// d5 f64 Dec (radians)
/// dr5 f64 proper motion in RA (dRA/dt, rad/Jyear)
/// dd5 f64 proper motion in Dec (dDec/dt, rad/Jyear)
/// px5 f64 parallax (arcsec)
/// rv5 f64 radial velocity (km/s, positive = receding)
///
/// Returned (all Hipparcos, epoch J2000.0):
/// rh f64 RA (radians)
/// dh f64 Dec (radians)
/// drh f64 proper motion in RA (dRA/dt, rad/Jyear)
/// ddh f64 proper motion in Dec (dDec/dt, rad/Jyear)
/// pxh f64 parallax (arcsec)
/// rvh f64 radial velocity (km/s, positive = receding)
///
/// Notes:
///
/// 1) This function transforms FK5 star positions and proper motions
/// into the system of the Hipparcos catalog.
///
/// 2) The proper motions in RA are dRA/dt rather than
/// cos(Dec)*dRA/dt, and are per year rather than per century.
///
/// 3) The FK5 to Hipparcos transformation is modeled as a pure
/// rotation and spin; zonal errors in the FK5 catalog are not
/// taken into account.
///
/// 4) See also h2fk5, fk5hz, hfk5z.
///
/// Called:
/// starpv star catalog data to space motion pv-vector
/// fk5hip FK5 to Hipparcos rotation and spin
/// rxp product of r-matrix and p-vector
/// pxp vector product of two p-vectors
/// ppp p-vector plus p-vector
/// pvstar space motion pv-vector to star catalog data
///
/// Reference:
/// F.Mignard & M.Froeschle, Astron.Astrophys., 354, 732-739 (2000).