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

Wrong error on missing reference frame for MSL Descent Stage #29

Open
jumpjack opened this issue Jan 17, 2021 · 2 comments
Open

Wrong error on missing reference frame for MSL Descent Stage #29

jumpjack opened this issue Jan 17, 2021 · 2 comments

Comments

@jumpjack
Copy link

jumpjack commented Jan 17, 2021

Why am I getting an error about missing reference frame for MSL rover upon using this function, which does not mention rover but spacecraft?

const MSLpos = TimeCraft.Spice.spkpos('-76', etEDL, 'J2000', 'LT+S', '499').ptarg;

I included kernel msl_edl_v01.bsp , de425s.bsp, msl_v08.tf and naif0012.tls; kernel msl_v08.tf contains reference frames for both Descent Stage (-76) and Rover (-76000), so why doesn't spkpos() properly refer to descent stage?

@jumpjack jumpjack changed the title Wrong error on missing kernel Wrong error on missing reference frame for MSL Descent Stage Jan 17, 2021
@jumpjack
Copy link
Author

jumpjack commented Jan 17, 2021

This line:
const MSLpos = TimeCraft.Spice.spkpos('MSL', etEDL, 'IAU_MARS', 'LT+S', 'MARS').ptarg;

causes error:
At epoch 3.9750156818313E+08 TDB (2012 AUG 06 05:06:08.183 TDB), there is insufficient information available to transform from reference frame -76000 (MSL_ROVER) to reference frame 1 (J2000).

in cspice.js:3

This line:
const MSLpos = TimeCraft.Spice.spkpos('MSL_SPACECRAFT', etEDL, 'IAU_MARS', 'LT+S', 'MARS').ptarg;

causes error:
Insufficient ephemeris data has been loaded to compute the position of -76010 (MSL_SPACECRAFT) relative to 0 (SOLAR SYSTEM BARYCENTER) at the ephemeris epoch 2012 AUG 06 05:06:08.183

Kernel msl_v08.tf contains these data:

  MSL                      -76
  MSL_ROVER                -76000
  MSL_SPACECRAFT           -76010

@gkjohnson
Copy link
Contributor

@jumpjack
Hello! It's best to include the full set of mission kernels unless you have a good knowledge of how SPICE kernels work and the data within. Both of the function calls you've posted work in the example page without issue with the kernels that have been imported.

Other than that I would refer to the official SPICE documentation for more details on SPICE functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants