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'
classmethod get_default_instance()[source]
load_kernel(kernel_filename)[source]

Load a kernel.

Wrapper to spice.furnsh().

load_default_kernels()[source]

Load default kernels.

get_position(t, relative_to='JUPITER', frame='JSE')[source]
get_velocity(t, relative_to='JUPITER', frame='JSE')[source]

Return the Juice orbiter’s velocity vector.

Parameters
  • t (datetime.datetime) – Time

  • relative_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

get_positions(tlist)[source]
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
get_starttime(onr)[source]
get_stoptime(onr)[source]
get_orbitnumber(t)[source]
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.

irfpy.pep.juice_spice.doctests()[source]