/rust/registry/src/index.crates.io-1949cf8c6b5b557f/sofars-0.6.1/src/pnp/pmat00.rs
Line | Count | Source |
1 | | use crate::pnp::bp00; |
2 | | |
3 | | /// Precession matrix (including frame bias) from GCRS to a specified |
4 | | /// date, IAU 2000 model. |
5 | | /// |
6 | | /// Given: |
7 | | /// date1,date2 f64 TT as a 2-part Julian Date (Note 1) |
8 | | /// |
9 | | /// Returned (function value): |
10 | | /// [[f64; 3]; 3] bias-precession matrix (Note 2) |
11 | | /// |
12 | | /// Notes: |
13 | | /// |
14 | | /// 1) The TT date date1+date2 is a Julian Date, apportioned in any |
15 | | /// convenient way between the two arguments. For example, |
16 | | /// JD(TT)=2450123.7 could be expressed in any of these ways, |
17 | | /// among others: |
18 | | /// |
19 | | /// date1 date2 |
20 | | /// |
21 | | /// 2450123.7 0.0 (JD method) |
22 | | /// 2451545.0 -1421.3 (J2000 method) |
23 | | /// 2400000.5 50123.2 (MJD method) |
24 | | /// 2450123.5 0.2 (date & time method) |
25 | | /// |
26 | | /// The JD method is the most natural and convenient to use in |
27 | | /// cases where the loss of several decimal digits of resolution |
28 | | /// is acceptable. The J2000 method is best matched to the way |
29 | | /// the argument is handled internally and will deliver the |
30 | | /// optimum resolution. The MJD method and the date & time methods |
31 | | /// are both good compromises between resolution and convenience. |
32 | | /// |
33 | | /// 2) The matrix operates in the sense V(date) = rbp * V(GCRS), where |
34 | | /// the p-vector V(GCRS) is with respect to the Geocentric Celestial |
35 | | /// Reference System (IAU, 2000) and the p-vector V(date) is with |
36 | | /// respect to the mean equatorial triad of the given date. |
37 | | /// |
38 | | /// Called: |
39 | | /// iauBp00 frame bias and precession matrices, IAU 2000 |
40 | | /// |
41 | | /// Reference: |
42 | | /// |
43 | | /// IAU: Trans. International Astronomical Union, Vol. XXIVB; Proc. |
44 | | /// 24th General Assembly, Manchester, UK. Resolutions B1.3, B1.6. |
45 | | /// (2000) |
46 | 0 | pub fn pmat00(date1: f64, date2: f64) -> [[f64; 3]; 3] { |
47 | | /* Obtain the required matrix (discarding others). */ |
48 | 0 | let (_, _, rbp) = bp00(date1, date2); |
49 | | |
50 | 0 | rbp |
51 | 0 | } |