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
//
// GENERATED FILE
//
use super::*;
use crate::SpiceContext;
use f2rust_std::*;
/// Seconds per tropical year
///
/// Return the number of seconds in a tropical year.
///
/// # Brief I/O
///
/// ```text
/// The function returns the number of seconds per tropical year.
/// ```
///
/// # Detailed Output
///
/// ```text
/// The function returns the number of seconds per tropical
/// year. This value is taken from the 1992 Explanatory Supplement
/// to the Astronomical Almanac (see [1]).
/// ```
///
/// # Exceptions
///
/// ```text
/// Error free.
/// ```
///
/// # Particulars
///
/// ```text
/// The tropical year is often used as a fundamental unit
/// of time when dealing with older ephemeris data. For this
/// reason its value in terms of ephemeris seconds is
/// recorded in this function.
/// ```
///
/// # Examples
///
/// ```text
/// Suppose you wish to compute the number of tropical centuries
/// that have elapsed since the ephemeris epoch B1950 (beginning
/// of the Besselian year 1950) at a particular ET epoch. The
/// following line of code will do the trick.
///
///
/// CENTRY = ( ET - UNITIM ( B1950(), 'JED', 'ET' ) )
/// . / ( 100.0D0 * TYEAR() )
/// ```
///
/// # Literature References
///
/// ```text
/// [1] P. Kenneth Seidelmann (Ed.), "Explanatory Supplement to the
/// Astronomical Almanac," p 80, University Science Books, 1992.
/// ```
///
/// # Author and Institution
///
/// ```text
/// J. Diaz del Rio (ODC Space)
/// W.L. Taber (JPL)
/// ```
///
/// # Version
///
/// ```text
/// - SPICELIB Version 1.0.1, 13-APR-2021 (JDR)
///
/// Edited the header to comply with NAIF standard.
///
/// - SPICELIB Version 1.0.0, 13-JUL-1993 (WLT)
/// ```
pub fn tyear() -> f64 {
let ret = TYEAR();
ret
}
//$Procedure TYEAR ( Seconds per tropical year )
pub fn TYEAR() -> f64 {
let mut TYEAR: f64 = 0.0;
TYEAR = 31556925.9747;
TYEAR
}