irfpy.pep.juice_spice
¶
JUICE orbit using SPICE
Warning
Deprecated and replaced by irfpy.juice.jspice
.
The JUICE orbit information from SPICE. Presently (2012-01-14), only preliminary data is considered.
The kernel is not in the repository, because they are very large in size
and this may not used for future investigations.
Thus, the kernel files should be prepared separately.
Refer to Futaana for the kernel files with statement Futaana to refer to folder 111125-juice-orbit.`
Todo
Archive the data, not in the repository but not in the master repository. Some other way is better.
Todo
At least, spice kernel files and associated modules must be re-sorted and re-factored for future simplicity.
-
class
irfpy.pep.juice_spice.
JuiceSpice
[source]¶ Bases:
object
-
juice_id
= -999¶
-
juice_name
= 'JUICE_SPACECRAFT'¶
-
get_velocity
(t, relative_to='JUPITER', frame='JSE')[source]¶ Return the Juice orbiter’s velocity vector.
- Parameters
t (
datetime.datetime
) – Timerelative_to (String) – The SPICE name of the body to calculate the relative velocity
frame (String) – Frame of the velocity vector
- Returns
Return the Juice orbiter’s velocity vector in the given frame
- Return type
np.array
-
-
class
irfpy.pep.juice_spice.
OrbitNumber001
[source]¶ Bases:
object
Pseudo orbit number data for
mantra.jgo_2020_001_ipc_cal_pso_res_e40_562_200.bsp
kernel.The data is produced from the script in
../../scripts/juice_ganymede_pseudo_orbitnr.py
.>>> onr = OrbitNumber001() >>> print(onr.get_starttime(50)) 2028-10-15 17:05:00 >>> print(onr.get_stoptime(49)) 2028-10-15 17:05:00
>>> print(onr.get_orbitnumber(datetime.datetime(2028, 9, 25, 10, 28))) 7 >>> print(onr.get_orbitnumber(datetime.datetime(2028, 9, 25, 10, 29))) 8 >>> print(onr.get_orbitnumber(datetime.datetime(2028, 9, 25, 10, 30))) 8
-
irfpy.pep.juice_spice.
is_valid_interval_mantra001
(t)[source]¶ Return the valid interval of the bsp file.
The bsp file, named
mantra.jgo_2020_001_ipc_cal_pso_res_e40_562_200.bsp
would contain an invalid data (untrustable time period).Thus, this function will give information of a rough hand-made time interval that may be trutable for user.