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
93
94
95
96
97
98
99
100
101
use crate::;
/// Apply proper motion and parallax
///
/// Proper motion and parallax.
///
/// This function is part of the International Astronomical Union's
/// SOFA (Standards of Fundamental Astronomy) software collection.
///
/// Status: support function.
///
/// Given:
/// ```
/// rc,dc double ICRS RA,Dec at catalog epoch (radians)
/// pr double RA proper motion (radians/year, Note 1)
/// pd double Dec proper motion (radians/year)
/// px double parallax (arcsec)
/// rv double radial velocity (km/s, +ve if receding)
/// pmt double proper motion time interval (SSB, Julian years)
/// pob double[3] SSB to observer vector (au)
/// ```
/// Returned:
/// ```
/// pco double[3] coordinate direction (BCRS unit vector)
/// ```
/// Notes:
///
/// 1) The proper motion in RA is dRA/dt rather than cos(Dec)*dRA/dt.
///
/// 2) The proper motion time interval is for when the starlight
/// reaches the solar system barycenter.
///
/// 3) To avoid the need for iteration, the Roemer effect (i.e. the
/// small annual modulation of the proper motion coming from the
/// changing light time) is applied approximately, using the
/// direction of the star at the catalog epoch.
///
/// References:
///
/// 1984 Astronomical Almanac, pp B39-B41.
///
/// Urban, S. & Seidelmann, P. K. (eds), Explanatory Supplement to
/// the Astronomical Almanac, 3rd ed., University Science Books
/// (2013), Section 7.2.
///
/// Called:
/// ```
/// iauPdp scalar product of two p-vectors
/// iauPn decompose p-vector into modulus and direction
/// ```