Pelles C forum

Pelles C => Projects developed with Pelles C => Topic started by: Grincheux on February 17, 2015, 09:24:44 PM

Title: Chloe a stars orbits viewer
Post by: Grincheux on February 17, 2015, 09:24:44 PM
It can be dowloaded at http://www.phrio.biz/download/7UpChloe64.exe (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 (http://phrio.biz/download/ChloeSources/$Chloe.exe)

Title: Re: Chloe a stars orbits viewer
Post by: Grincheux on August 30, 2016, 08:02:34 AM
This version has been removed and replaced with a new one. See more details at Here (http://www.phrio.biz)

(http://phrio.biz/chloe/VV_00008.jpg)

 ;D
Title: Re: Chloe a stars orbits viewer
Post by: Grincheux on September 11, 2016, 08:01:23 PM
A new analyze gave the following (http://phrio.biz/ccs/).
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

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!
Title: Re: Chloe a stars orbits viewer
Post by: Grincheux on September 13, 2016, 09:33:07 PM
I have a part of the answer.
The library CalcEph (http://www.imcce.fr/fr/presentation/equipes/ASD/inpop/calceph/index.html).
It is possible to use NASA kernels with it.

Here is an example

Code: [Select]
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) ;
}

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
-----------------------------------------------------------------

I generate a kernel here (http://ssd.jpl.nasa.gov/x/spk.html)
This kernel is heliocentric.

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