How to read JPL CD-ROM for DE200/405/406 by "C" on PC |
|
Section 1 How to get CD-ROM |
At first, you have to perches the CD-ROM. The CD-ROM is provided by The each ephemeris support following terms. There are several problems to use CD-ROM. 1)The attached source cord to use CD-ROM is Fortran only. 2)The ephemeris data is stored in unix format. 3)The ascii format data is attached, but conversion program is fortran. 4)No ascii data for DE406. Therefore following step is necessary to use the CD-ROM on the PC. 1)The data conversion form Unix format to Dos format. 2)The C code software to use the CD-ROM. The following section explain the above. |
Section 2 The data conversion from Unix format to dos format |
Please check the Hard disk size before running the software,Because the software will create same size of dos file. Source file for file conversion"file_convert.zip" |
Section 3 Check of the converted file |
This file is provided by Mr. K. Arfa-Kaboodvand. However this "C version" software also use the special data format, this program cannot read the converted file (dos.xxx). It will require the modification. The modified source code is attached below. Converted file test program"test.zip" Then we can check the converted file and calculation routine in test.c with following three files. 1)dos.xxx file(Converted file in section 2) 2)executable file of test.c file (after compile) 3)testpo.xxx (attached in the CD-ROM) If the test.exe file finish without error, the converter file and the calculation routine in test.c is correct. |
Section 4 Calculation of the rectangular components |
This file is provided by Mr. K. Arfa-Kaboodvand. The following source code is modified from the above file to read des.xxx data file. By using the following files, we can get the rectangular components. 1)test1.exe file compiled from test1.c. 2)dos.xxx file. The calculation results for earth is also attached. source code for rectangular components"test1.zip" Example for earth(at 1999/01/00 0hTDB)"test1.txt" |
Section 5 Calculation of coordinates for sun, moon, planets |
Example for Macury (at 1999/01/01 0hTDB)"test.txt" |
![]() |
Copyright(C) 1999 Shinobu Takesako |