I How to change CSpice initial velocity from an Asteroid SPK file?

AI Thread Summary
To change the initial velocity of an asteroid using a CSpice SPK file, the user has created a file for asteroid 7482 (1994 PC1) and seeks to adjust its velocity for future position calculations. They found a solution involving C++ and Python code from a GitHub repository that implements Newtonian mechanics with a symplectic integration method. The user modified the C++ code to compute initial positions and speeds with CSpice, which are then used in conjunction with the Newton Candy method to project future distances to planets. Important considerations include ensuring proper unit conversions and using the correct CSpice frame (ECLIPJ2000) and observer settings. The discussion emphasizes the utility of APK Editor in this process.
forofo
Messages
4
Reaction score
1
TL;DR Summary
Change spice spk file velocity to determinate the position of an asteroid
Hello, I've made a SPK file for asteroid 7482 (1994 PC1) with Horizon. I wan't to change the initial velocity with cspice, because I want to know where it will be in a future time at the speed changed. (now I'm using Newtons calc but is slow an error increases with time). This is for calculating NEO's asteroid position desviation.
 
Astronomy news on Phys.org
I found the answer: In this link https://github.com/fding/nbody (Newtonian mechanics and a four-order symplectic Candy-Rozmus integration), there is c++ code and phyton. I've modify the c++, so now I calc the inital positions and speeds with cspice and pass then to Newton candy with other asteroid speed. Then I run both to the future to see the asteroid distance to any planet. Just take care about units conversion, cspice frame(ECLIPJ2000) and obverser naif Solar System(0), Used de440.bsp and 2007482(1994 PC1).bsp
 
You might want have APK Editor in your tool kit.
 
TL;DR Summary: In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect alien signals, it will further expand the radius of the so-called silence (or rather, radio silence) of the Universe. Is there any sense in this or is blissful ignorance better? In 3 years, the Square Kilometre Array (SKA) telescope (or rather, a system of telescopes) should be put into operation. In case of failure to detect...
Thread 'Could gamma-ray bursts have an intragalactic origin?'
This is indirectly evidenced by a map of the distribution of gamma-ray bursts in the night sky, made in the form of an elongated globe. And also the weakening of gamma radiation by the disk and the center of the Milky Way, which leads to anisotropy in the possibilities of observing gamma-ray bursts. My line of reasoning is as follows: 1. Gamma radiation should be absorbed to some extent by dust and other components of the interstellar medium. As a result, with an extragalactic origin, fewer...
This thread is dedicated to the beauty and awesomeness of our Universe. If you feel like it, please share video clips and photos (or nice animations) of space and objects in space in this thread. Your posts, clips and photos may by all means include scientific information; that does not make it less beautiful to me (n.b. the posts must of course comply with the PF guidelines, i.e. regarding science, only mainstream science is allowed, fringe/pseudoscience is not allowed). n.b. I start this...
Back
Top