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
use cratefk524;
use crate;
/// Convert a J2000.0 FK5 star position to B1950.0 FK4, assuming zero
/// proper motion in FK5 and parallax.
///
/// Status: support function.
///
/// Given:
/// r2000,d2000 f64 J2000.0 FK5 RA,Dec (rad)
/// bepoch f64 Besselian epoch (e.g. 1950.0)
///
/// Returned:
/// r1950,d1950 f64 B1950.0 FK4 RA,Dec (rad) at epoch BEPOCH
/// dr1950,dd1950 f64 B1950.0 FK4 proper motions (rad/trop.yr)
///
/// Notes:
///
/// 1) In contrast to the fk524 function, here the FK5 proper
/// motions, the parallax and the radial velocity are presumed zero.
///
/// 2) This function converts a star position from the IAU 1976 FK5
/// (Fricke) system to the former FK4 (Bessel-Newcomb) system, for
/// cases such as distant radio sources where it is presumed there is
/// zero parallax and no proper motion. Because of the E-terms of
/// aberration, such objects have (in general) non-zero proper motion
/// in FK4, and the present function returns those fictitious proper
/// motions.
///
/// 3) Conversion from J2000.0 FK5 to B1950.0 FK4 only is provided for.
/// Conversions involving other equinoxes would require additional
/// treatment for precession.
///
/// 4) The position returned by this function is in the B1950.0 FK4
/// reference system but at Besselian epoch bepoch. For comparison
/// with catalogs the bepoch argument will frequently be 1950.0. (In
/// this context the distinction between Besselian and Julian epoch
/// is insignificant.)
///
/// 5) The RA component of the returned (fictitious) proper motion is
/// dRA/dt rather than cos(Dec)*dRA/dt.
///
/// Called:
/// anp normalize angle into range 0 to 2pi
/// c2s p-vector to spherical
/// fk524 FK4 to FK5
/// s2c spherical to p-vector