snippet.pyspice_sample1
ΒΆ
A short sample of using PySPICE
''' A short sample of using PySPICE
'''
# IPython log file
from spiceypy import *
if __name__ == '__main__':
furnsh('../pyana/pep/spice/naif0009.tls')
furnsh('../pyana/pep/spice/pck00010.tpc')
furnsh('../pyana/pep/spice/jup230l.bsp')
t0 = "2025-01-01T00:00:00"
str2et(t0)
et0 = str2et(t0)
posvel, lt = spkezr("Jupiter", et0, "J2000", "LT+S", "Sun")
print(posvel, lt)
posvel, lt = spkezr("Callisto", et0, "IAU_CALLISTO", "LT+S", "Jupiter")
print(posvel, lt)