Read JPL ephemeris and calculate planet coordinates using C++Builder VCL app

For this freelancer project I am using C++Builder from Embarcadero Technology. The end product must be completed in a version of C++Builder so I can compile and run the software in my version of C++Builder. I am working with the 32bit platform so any version of C++Builder should work.

NASA and JPL have a public ephemeris for calculating planet positions. There is C code available to access the JPL ephemeris. The C code is for a console application. I am trying to get the code to work in C++Builder as a VCL application with a simple GUI. I have been unable to get the C code to calculate a planet position in either the console app or a VCL application.

--What I need done--

1) I need a C++Builder VCL application which will access the JPL ephemeris version 422 and calculate the coordinates for a planet. The normal coordinates are Longitude, Latitude, Radius Vector but there may be more. I am not sure how many coordinates the ephemeris provides.

2) The program should have user inputs for any variables needed calculate the planet position. This should include at lease the three items Date, Center position and Target Planet. There may be other variables I am unaware of.

3) The results should be displayed in the RichEdit component that is in the sample VCL application. If possible the results should be labeled with the name of each coordinate.


1) Below are the download links for the JPL ephemeris version 422 which I am trying to use. These three files should be downloaded and put into the same folder as the .exe which is using them. The JPL ephemeris file named 'lnxm3000p3000.422' is large at 544 megabytes so I have not attached these files to this Freelancer project, they must be downloaded from JPL.

--JPL ephemeris files--

ftp://[url removed, login to view]

ftp://[url removed, login to view]

ftp://[url removed, login to view]

2) Below is the download links for the C files which should access the JPL ephemeris. I have also attached these files as .zip files to this Freelancer project. You must use version 1.4 which is the version which will read the JPL ephemeris version 422.

--C source code--

ftp://[url removed, login to view]

ftp://[url removed, login to view]

ftp://[url removed, login to view]

ftp://[url removed, login to view]

3)Attached is a file named [url removed, login to view] which contains C++Builder XE4 Project files for a console application using the C version 1.4 source files above. I have set the ephemeris to version 422 in the .h file, other than this there are no changes to the original C files.

4) Attached is a file named VCL_App.zip. This contains the C++ Builder XE4 project files for a VCL application. This VCL program returns the same results as the console applications and does not calculate any planet positions.

Finaly I have attached two pictures of the console application and the VCL application. These are named [url removed, login to view] and Pic_VCL_app.png.

I have added a file named New_ConsoleApp.zip which contains a modified version of the .c file. It was original created for Linux and the new version should work better with Windows. There is also a file named testeph_Output.txt which shows the program test out put.

I believe I need to directly call the function void pleph( ) to calculate the planet poistions.

I have attached two pictures (Venus2015_01_01.png and Venus_Online.png) showing sample calculation for Venus on 2015-01-01 in geocentric and heliocentric longitude and latitude. The values in each picture are slightly different because one is from the US Natal observatory software and the other is from the online JPL Horizons web site. These are the values I am trying to calculate using the sample C source code that accesses the JPL 422 ephemeris. The numbers calculated by the source code should be approximately the values listed below.

Heliocentric Venus
longitude= 319.10
latitude= -3.01

Geocentric Venus
longitude= 296.72
latitude= -1.35

Beceriler: C Programlama, C++ Programlama

Daha fazlasını gör: read data excel file insert mysql using aspnet, calculate gpa file using java, calculate shipping costs using javascript, calculate business days using javascript, gps coordinates using java api, calculate salary application using prolog programming, coordinates using yahoo maps javascript, gps coordinates using google maps api, calculate fields adobe using java, read wav header calculate duration asp, calculate distance coordinates mysql, service calculate driving distance using google api, calculate quarterly payments using simple interest, calculate difference days using javascript

İşveren Hakkında:
( 6 değerlendirme ) Austin, United States

Proje NO: #15501669



Good morning, I think this is what you need: [login to view URL] One image is pure linux, the other win32 VCL app you sent, working! Relevant Skills a Daha Fazla

%selectedBids___i_period_sub_7% gün içinde 77%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(1 Yorum)

Bu iş için 9 freelancer ortalamada $151 teklif veriyor


Hello. I tried to to compile original C files on my machine and it looks like it generated long table. I have found how to compile it properly Relevant Skills and Experience I have experience with adapting C and C+ Daha Fazla

in %bids___i_period_sub_35% gün içinde86%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1303 Değerlendirme)

There are some errors in the testeph.c. .

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)

Make ephemeris calculator using DE422 JPL files Relevant Skills and Experience Astronomy , C# Proposed Milestones $100 USD - User Interface and reading the file $100 USD - Calculating coordinates $100 USD - F Daha Fazla

in %bids___i_period_sub_35% gün içinde300%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(7 Değerlendirme)

Hi, I would love to have the opportunity to fulfill your gig request!, I am university educated and provisionally trained by the very best online supper seller trained in the USA. Relevant Skills and Experience C++, C Daha Fazla

in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(1 Yorum)
in %bids___i_period_sub_35% gün içinde155%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

i am good at cpp coding. Relevant Skills and Experience good at cpp Proposed Milestones $100 USD - will deliver in time

in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
in %bids___i_period_sub_35% gün içinde444%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

Hello I have gone through your project description I am highly expert & well experienced & I can your project very well. I have 10years of experience & have completed 100+ projects . Relevant Skills and Experience M Daha Fazla

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)