\begindata
INPUT_DATA_TYPE = 'STATES'
OBJECT_ID = 3405189
OUTPUT_SPK_TYPE = 12
OBJECT_NAME = '(2008 EA9)'
TIME_WRAPPER = '# JD TDB'
CENTER_ID = 0
CENTER_NAME = 'SOLAR SYSTEM BARYCENTER'
REF_FRAME_NAME = 'J2000'
LINES_PER_RECORD = 1
POLYNOM_DEGREE = 7
INPUT_DATA_UNITS = ('DISTANCES=km')
PRODUCER_ID = 'JPL Horizons'
DATA_ORDER = 'epoch x y z vx vy vz'
DATA_DELIMITER = ','
LEAPSECONDS_FILE = 'naif0009.tls'
PCK_FILE = 'gravity.tpc'
SEGMENT_ID = 'SPK_ELEMENTS_12'
\begintext
!$$SOF
COMMAND= 'DES=2008 EA9'
EMAIL_ADDR = ' '
TABLE_TYPE = 'VECTORS'
REF_PLANE = 'ECLIPTIC'
START_TIME = '2001-JAN-1 10:00'
STOP_TIME = '2031-JAN-1 10:00'
STEP_SIZE = '1 d'
REF_SYSTEM = 'J2000'
OUT_UNITS = 'KM-S'
RANGE_UNITS= 'KM'
VECT_TABLE = '2'
VECT_CORR = 'NONE'
!$$EOF
Thanks for uploading this, Wishbone. :tiphat:Update: got the state vectors from 2001 to 2050, but now I have to figure out how to run the MKSPK utility...
EDIT: uploaded the kernel attached to the post. Haven't tried it myself yet...
Pardon my ignorance, but I am just more confused now...which cfg file contains these lines? They don't appear in the Orbiter config file or the MPCORB database so far as I can see, and TrajOptTool seems to know the asteroid only by its number.Tested the set myself and it works. The only caveat: one has to set BODY and BARYCENTER lines in the SPICE'd .cfg file equal to the asteroid's ID, which is 3405189. If you simply plug in the name, you will end up around Sedna and rotating like hell which is definitely wrong on both counts.
Name = 2008 EA9
Module = spice
Kernel = Kernels\2008ea9.bsp
Barycenter = 3405189
Body = 3405189
Origin = SUN BARYCENTER
Aha, thanks, I didn't know spice.dll existed. I will give it a try. :tiphat:If you want the real ephemerides to show up in Orbiter, you have to use Ajaja's spice.dll (http://www.orbiter-forum.com/showthread.php?t=1387&page=3).
The first lines in 2008 EA9.cfg file would look like this:
Code:Name = 2008 EA9 Module = spice Kernel = Kernels\2008ea9.bsp Barycenter = 3405189 Body = 3405189 Origin = SUN BARYCENTER
...with the rest of the data on mass, size and period etc. taken from the database.
Thanks! I will give this a try when I have a chance and see if I get any farther...like out of LEO.Managed to launch on a trajectory to the asteroid with cue from Arrowstar's TOpTool. Attaching a save, and the config files I'm using.