Questions tagged [spice]

The SPICE is a information system released by the Navigation and Ancillary Information Facility (NAIF) to assist scientists and engineers. The system includes data sets called "kernels" and the SPICE Toolkit, a software library needed to read the kernel files and to calculate observation geometry parameters of interest to scientists and engineers.

Filter by
Sorted by
Tagged with
0 votes
0 answers
119 views

Spice C compiling issues

I have been trying to run Spice in C code for one week but I have not succeeded. I know how to use Spice in Matlab and Python but I need to use it in C this time. So I have followed this tutorial by ...
user avatar
4 votes
2 answers
107 views

SPICE toolkit occultation finder doesn't work with spacecraft

I've to know if the sun is occulted by earth from my spacecraft which is in low earth orbit with these parameters (a:6700 km, e:0.0, i:5°, ...). I run the following method with search window start at ...
user avatar
  • 115
6 votes
3 answers
457 views

Access to Chebyshev coefficients from JPL ephemerides

I want to generate an ephemeris file containing the Chebyshev coefficients, similar to how we can generate ephemeris file of positions with Horizon tool (https://ssd.jpl.nasa.gov/horizons/app.html#/). ...
user avatar
2 votes
0 answers
74 views

Lunar eclipses using SPICE toolkit, missing ephemeris data

I want to figure out lunar eclipses as seen from a point on the Moon using SPICE. To generate ephemeris for the point on the Moon, I use the code provided in this answer. Instead of ...
user avatar
  • 183
2 votes
0 answers
43 views

determining lunar eclipse with SPICE toolkit

Is there any way to determine if the Sun is visible from the Moon at a given latitude/longitude and at a given instant in SPICE toolkit? Specifically, determine if there is lunar eclipse or transit ...
user avatar
  • 183
3 votes
1 answer
180 views

SPICE defining a topocentric frame on the Moon

I would like to define a topocentric frame for a particular spot on the moon. From the frames required reading i have this: ...
user avatar
  • 183
3 votes
1 answer
180 views

Horizons ephemeris - how did they calculate that “Keplerian GM” value?

I’ve been playing with the NAIF’s SPICE library for some time (CSPICE in particular). In order to obtain the state vector of an asteroid from its osculating elements, I’m calling the “conics_c” ...
user avatar
3 votes
1 answer
179 views

How to get MARS2020/Perseverance EDL trajectory data from spice kernels?

For MSL EDL it is available this answer: How to retrieve MSL EDL trajectory using Javascript and webgeocalc API? How can I adapt it to MARS2020/Perseverance?
user avatar
  • 2,823
3 votes
1 answer
55 views

Does SPICE function gftfov account for occultations?

I need to determine when an antenna on a spacecraft can see a ground station on Earth at particular epochs. I have generated all the necessary SPICE kernels necessary as well as using the NASA ...
user avatar
  • 63
1 vote
1 answer
201 views

Was the famous SPICE package of programs, utilities and data kernels named after "Melange" found on the planet Arrakis?

This question is NOT about a fictional planet: This question is about NASA JPL history and the naming of SPICE. It is not primarily about the fictional planet Arrakis nor the fictional drug Melange ...
user avatar
  • 148k
2 votes
1 answer
116 views

How to retrieve MSL EDL trajectory using Javascript and webgeocalc API?

I found a "javascript gateway" to NASA SPICE data, the "webgeocalc" web api: https://wgc2.jpl.nasa.gov:8443/webgeocalc/example/perform-calculation.html It works both online and ...
user avatar
  • 2,823
3 votes
0 answers
85 views

How to get MSL coordinates during EDL from SPICE kernel?

Upon trying to extract MSL position above surface by decoding a SPICE kernel, I am gettin this error: At epoch 3.9750216818313E+08 TDB (2012 AUG 06 05:16:08.183 TDB), there is insufficient ...
user avatar
  • 2,823
5 votes
2 answers
584 views

How to convert a SPICE SPK kernel into human-readable data using SPICE toolkit and utilities

SPK2OEM is one of many of SPICE tools available here: https://naif.jpl.nasa.gov/naif/utilities_PC_Windows_32bit.html I am trying to extract ephemeris from one of the SPK files listed here: https://...
user avatar
  • 2,823
3 votes
1 answer
143 views

Should coordinate transformations from J2000 to ITRF93 in quaternions be cyclic?

I used SPICE's pxform at an interval of epochs to determine the transformation from J2000 (inertial) to ITRF93 (Earth body-fixed) frame. Then, I converted these rotation matrices to quaternions with ...
user avatar
  • 63
4 votes
1 answer
116 views

How can I generate Chebyshev cofficients from SPICE for J2000 Inertial to Moon ME Frame?

I want to extract the Chebyshev coefficients in order to be able to calculate the time-varying transformation from the ICRF / J2000 Inertial frame to the Moon ME (moon mean earth) frame. I know I can ...
user avatar
  • 41
2 votes
1 answer
255 views

Rotation matrix from J2000 to ITRF2008

I want to rotate a vector from the inertial J2000 frame into ITRF2008. I am using the NASA SPICE library, which provides a rotation matrix from J2000 to ITRF93 (they plan to upgrade the library to a ...
user avatar
  • 183
3 votes
0 answers
111 views

Suggestion for software which allows orbit data generation under different conditions (such as J2, ATM drag etc)

I am an amateur astrophysics enthusiast trying to generate orbit data. What I want to achieve: I want to be able to generate orbits while only considering effects of (J2, J3, atm drag, solar ...
user avatar
3 votes
2 answers
437 views

How to obtain Chebyshev coefficients directly from the JPL Horizon's interface?

I'm from Spain and I'm currently finishing my degree in Aerospace Engineering. I am starting with all of this. My objective is to obtain the Chebyshev coefficients for the major planets position, ...
user avatar
4 votes
0 answers
152 views

SPICE GFPOSC is returning incorrect sunrise (and sunset) times for topocentric frames

I cannot get SPICE to produce accurate sunrise times for topocentric frames I specify. I'm using spiceypy to interface with SPICE. As a first test, I set up topo coordinates for the MARE landing site,...
user avatar
  • 1,070
3 votes
1 answer
192 views

How does one use SPICE to compute the Greenwich sidereal time as an angle?

I'm looking at the BMW book† and see that equation 7.5-7 gives $\alpha_0 = \theta = \theta_g + \lambda_E$ as the equation for right ascension (for some launch site at east longitude $\lambda_E$). $\...
user avatar
  • 1,070
1 vote
0 answers
229 views

How to define a body-centered ICRF/J2000 frame in SPICE?

I am trying to define a reference frame in SPICE that is Centered on a particular body, for example Mars, and with axes parallel to J2000/ICRF After going through the required reading for reference ...
user avatar