You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description = "ANISE provides a toolkit and files for Attitude, Navigation, Instrument, Spacecraft, and Ephemeris data. It's a modern replacement of NAIF SPICE file."
@@ -26,7 +26,7 @@ exclude = [
26
26
]
27
27
28
28
[workspace.dependencies]
29
-
hifitime = "4.1.1"
29
+
hifitime = "4.1.2"
30
30
memmap2 = "0.9.4"
31
31
crc32fast = "1.4.2"
32
32
der = { version = "0.7.8", features = ["derive", "alloc", "real"] }
"""Returns a chronologically sorted list of the Cartesian states that transform the `from_frame` to the `to_frame` for each epoch of the time series, computed in parallel under the hood.
293
288
Note: if any transformation fails, the error will be printed to the stderr.
294
289
@@ -304,7 +299,7 @@ Refer to [transform_to] for details."""
"""Returns the Cartesian state of the target frame as seen from the observer frame at the provided epoch, and optionally given the aberration correction.
309
304
310
305
# SPICE Compatibility
@@ -321,7 +316,7 @@ This function only performs the translation and no rotation whatsoever. Use the
321
316
# Note
322
317
This function performs a recursion of no more than twice the [MAX_TREE_DEPTH]."""
"""Returns the geometric position vector, velocity vector, and acceleration vector needed to translate the `from_frame` to the `to_frame`, where the distance is in km, the velocity in km/s, and the acceleration in km/s^2."""
"""Returns the number of days since the start of the Gregorian month in the current time scale.
310
+
311
+
# Example
312
+
```
313
+
use hifitime::Epoch;
314
+
let dt = Epoch::from_gregorian_tai_at_midnight(2025, 7, 3);
315
+
assert_eq!(dt.day_of_month(), 3);
306
316
```"""
307
317
308
318
defday_of_year(self) ->float:
@@ -974,6 +984,9 @@ NOTE: This function will return an error if the centuries past GPST time are not
974
984
defto_gpst_seconds(self) ->float:
975
985
"""Returns seconds past GPS Time Epoch, defined as UTC midnight of January 5th to 6th 1980 (cf. <https://gssc.esa.int/navipedia/index.php/Time_References_in_GNSS#GPS_Time_.28GPST.29>)."""
"""Converts the Epoch to the Gregorian parts in the (optionally) provided time scale as (year, month, day, hour, minute, second)."""
989
+
977
990
defto_gst_days(self) ->float:
978
991
"""Returns days past GST (Galileo) Time Epoch,
979
992
starting on August 21st 1999 Midnight UT
@@ -1088,7 +1101,7 @@ NOTE: This function will return an error if the centuries past QZSST time are no
1088
1101
defto_tai_duration(self) ->Duration:
1089
1102
"""Returns this time in a Duration past J1900 counted in TAI"""
1090
1103
1091
-
defto_tai_parts(self) ->typing.Tuple:
1104
+
defto_tai_parts(self) ->tuple:
1092
1105
"""Returns the TAI parts of this duration"""
1093
1106
1094
1107
defto_tai_seconds(self) ->float:
@@ -1119,7 +1132,7 @@ past J2000, one cannot solve the revert the operation analytically. Instead, we
1119
1132
defto_tdb_seconds(self) ->float:
1120
1133
"""Returns the Dynamic Barycentric Time (TDB) (higher fidelity SPICE ephemeris time) whose epoch is 2000 JAN 01 noon TAI (cf. <https://gssc.esa.int/navipedia/index.php/Transformations_between_Time_Systems#TDT_-_TDB.2C_TCB>)"""
1121
1134
1122
-
defto_time_of_week(self) ->typing.Tuple[int]:
1135
+
defto_time_of_week(self) ->tuple:
1123
1136
"""Converts this epoch into the time of week, represented as a rolling week counter into that time scale
1124
1137
and the number of nanoseconds elapsed in current week (since closest Sunday midnight).
1125
1138
This is usually how GNSS receivers describe a timestamp."""
@@ -1186,10 +1199,70 @@ Several time scales do _not_ have a reference day that's on a Monday, e.g. BDT."
0 commit comments