Pelles C > Projects developed with Pelles C

Chloe a stars orbits viewer

(1/1)

Grincheux:
It can be dowloaded at http://www.phrio.biz/download/7UpChloe64.exe (>800 Mb)
This is a gift for Pelle's C users.
This program is entirely written in C with the Pelle's compiler and with the help of his IDE.


The complete source code can be downloaded http://phrio.biz/download/ChloeSources/$Chloe.exe

Grincheux:
This version has been removed and replaced with a new one. See more details at Here



 ;D

Grincheux:
A new analyze gave the following.
I posted a message to know how to use the BSP files, the answer is :


--- Quote ---Mr.  ??? ,
I think you don’t want an SPK file for a given small body; this is a complicated binary format requiring special software and knowledge to use.

Instead I suggest you try using this Horizon’s webpage:

http://ssd.jpl.nasa.gov/horizons.cgi

You might also look at:

http://ssd.jpl.nasa.gov/?tools

Or use the telnet or email interface:

http://ssd.jpl.nasa.gov/?horizons#telnet

If you have further questions about generating/getting ephemerides for small bodies, it would be best to contact the Horizons folks.

-- Charles Acton

--- End quote ---

That means : I DON'T WANT TO HELP YOU

Now I have created the datas for 200 asteroids and I must think of an other process design.
I have a lot of work and I don't where to begin!

Grincheux:
I have a part of the answer.
The library CalcEph.
It is possible to use NASA kernels with it.

Here is an example


--- Code: --- int _bRes ;
int j ;
double jd0 = 2415020.50 ; // 1-1-1900
double dt1 = 0.0 ;
t_calcephbin *pEph_1 ;
double PV[6] ;

/* open the ephemeris file */

pEph_1 = calceph_open("Ceres.bsp") ;
if(pEph_1)
{
memset(PV,0,sizeof(PV)) ;

_bRes = calceph_compute_unit(pEph_1,jd0,dt1,NAIFID_CERES,NAIFID_SUN,CALCEPH_USE_NAIFID+CALCEPH_UNIT_KM+CALCEPH_UNIT_SEC,PV) ;

/* close the ephemeris file */
calceph_close(pEph_1) ;
}

--- End code ---

The results are


--- Quote --------------------------------------------------------------------
     CalcEph                     |         JPL/HORIZONS              |
-----------------------------------------------------------------
PV[0] = -5.33592e+06  | -5.360115439179360E+06   | X
PV[1] = -3.87096e+08  | -3.870962304665639E+08   | Y
PV[2] = -1.78922e+08  | -1.789169433649454E+08   | Z
PV[3] = 17.0183            | 1.701830983443931E+01    | VX
PV[4] = -0.00583934    | -6.781116030120477E-03    | VY
PV[5] = -3.48705          | -3.487487622121435E+00   | VZ
-----------------------------------------------------------------

--- End quote ---

I generate a kernel here
This kernel is heliocentric.

Now I have to test with DE430, DE431 and DE432 for having geocentric and topographic coordinates.

Navigation

[0] Message Index

Go to full version