-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic #195
Comments
you are not passing in the correct path to the meta kernel. Try passing in the absolute path to the meta kernel to spice.furnsh or be sure to start the python interpreter or script within that directory as you are only giving a relative path. Also as you are on windows, you may need to use windows paths ie |
Thank you, Sir, I am getting the results for Cassini Position example http://spiceypy.readthedocs.io/en/master/exampleone.html,
In[]: data How can I see the plot? Thank you.
|
The example I provided in the docs uses a library called plotly which hasn't been updated so it doesn't work, so don't use that code verbatim. Yes I do need to update that. You can plot the data using matplotlib instead, see https://matplotlib.org/examples/mplot3d/lines3d_demo.html for a simple example that should be easy to adapt to use the position data returned from spkpos. |
Thank you, getting the plot. |
I am trying example from http://spiceypy.readthedocs.io/en/master/exampleone.html
I downloaded necessary file 'naif0009.tls', 'cas00084.tsc', 'cpck05Mar2004.tpc', '020514_SE_SAT105.bsp',
'981005_PLTEPH-DE405S.bsp', '030201AP_SK_SM546_T45.bsp', '04135_04171pc_psiv2.bc', 'cas_v37.tf', 'cas_iss_v09.ti' and a text file 'cassMetaK.txt' in which I am writing this as follows
\begindata
KERNELS_TO_LOAD=(
'naif0009.tls',
'cas00084.tsc',
'cpck05Mar2004.tpc',
'020514_SE_SAT105.bsp',
'981005_PLTEPH-DE405S.bsp',
'030201AP_SK_SM546_T45.bsp',
'04135_04171pc_psiv2.bc',
'cas_v37.tf',
'cas_iss_v09.ti')
\begintext
Now I am in this folder: C:\Users\Ramdayal, cassMetaK.txt and all downloaded kernel files are in the same folder C:\Users\Ramdayal, I am getting
SpiceyError Traceback (most recent call last)
in ()
----> 1 spice.furnsh("./cassMetaK.txt")
C:\Users\Ramdayal\AppData\Local\Enthought\Canopy\User\lib\site-packages\spiceypy\spiceypy.pyc in with_errcheck(*args, **kwargs)
69 try:
70 res = f(*args, **kwargs)
---> 71 checkForSpiceError(f)
72 return res
73 except:
C:\Users\Ramdayal\AppData\Local\Enthought\Canopy\User\lib\site-packages\spiceypy\spiceypy.pyc in checkForSpiceError(f)
52 msg = stypes.errorformat.format(**errorparts)
53 reset()
---> 54 raise stypes.SpiceyError(msg)
55
56
SpiceyError:
Toolkit version: N0066
SPICE(NOSUCHFILE) --
The attempt to load "./cassMetaK.txt" by the routine FURNSH failed. It could not be located.
furnsh_c --> FURNSH --> ZZLDKER
================================================================================
How can I proceed?
I am getting this correctly
spice.tkvrsn("TOOLKIT")
'CSPICE_N0066'
The text was updated successfully, but these errors were encountered: