Skip to content
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

Tutorial Problem #166

Closed
Rhys314 opened this issue Oct 9, 2016 · 2 comments
Closed

Tutorial Problem #166

Rhys314 opened this issue Oct 9, 2016 · 2 comments
Labels

Comments

@Rhys314
Copy link

Rhys314 commented Oct 9, 2016

Hello,

I've tried to follow the Cassini position example but the first call to str2et throws a SPICE (NOLEAPSECONDS) error:

SpiceyError:

Toolkit version: N0065

SPICE(NOLEAPSECONDS) --

The variable that points to the leapseconds (DELTET/DELTA_AT) could not be located in the kernel pool. It is likely that the leapseconds kernel has not been loaded via the routine FURNSH.

str2et_c --> STR2ET --> TTRANS

I find this error odd as the ste2et_c documentation doesn't list SPICE(NOLEAPSECONDS) as a possible exception. What I assume are the two other functions in the stack trace (STR2ET and TTRANS) have no documentation on the naif website. You can find my attempt at the example here. I am running 64-bit Python 3.5.2 on Windows 10 using a WinPython distribution.

@AndrewAnnex
Copy link
Owner

So I looked at your example repo and found that the issue is your meta kernel file, the first issue is that the \begindata needs to be on a new line above the KERNELS_TO_LOAD. I also updated the paths in the meta kernel to be relative to the python file like so:cassini_kernel/naif0009.tls for each of the kernels. After that it ran fine. You can print out how many kernels have been loaded by running running spiceypy.ktotal("ALL"), for your example before the fix it returned 1 (iirc) and after it returns 10. As for why that exception is not documented, I have no idea. Hope that helps

@Rhys314
Copy link
Author

Rhys314 commented Oct 10, 2016

Thanks for the help Andrew, works just fine now.

@Rhys314 Rhys314 closed this as completed Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants