bill-gray / jpl_eph Goto Github PK
View Code? Open in Web Editor NEWCode to read, use, and manipulate JPL DE ephemeris data.
Home Page: http://www.projectpluto.com/jpl_eph.htm
License: GNU General Public License v3.0
Code to read, use, and manipulate JPL DE ephemeris data.
Home Page: http://www.projectpluto.com/jpl_eph.htm
License: GNU General Public License v3.0
Greetings,
The file
get_bin.h
Is missing from the source tree and the code doesn't compile.
Best,
(Please excuse my English. This is a question for this project. If there is a better place for this questions, please let me know.)
I want to get planets' heliocentric coordinates at a given TDB from JPL DE43x ephemeris. Can I get the coordinates form this project? I downloaded and built this project, but could not find any executable file for the coordinates.
DE441 ends up 11000 years short when you try to make a binary ephemeris file from the files downloaded at ftp://ssd.jpl.nasa.gov/pub/eph/planets/ascii/de441.
Instead of an ephemeris that runs from -13000 to 17000, it cuts off and you only get a partial file running from -13000 to 5999.
The same files have successfully been used to create the full binary DE441 using the fortran program asc2eph.f located at ftp://ssd.jpl.nasa.gov/pub/eph/planets/fortran/.
I checked out jpl_eph, but when I try and compile the code, I get an error message about note being able to find "date.h". The output looks like:
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c asc2eph.cpp
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c f_strtod.cpp
g++ -o asc2eph asc2eph.o f_strtod.o
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c dump_eph.cpp
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c jpleph.cpp
rm libjpl.a
rm: cannot remove 'libjpl.a': No such file or directory
make: [makefile:54: libjpl.a] Error 1 (ignored)
ar rv libjpl.a jpleph.o
ar: creating libjpl.a
a - jpleph.o
g++ -o dump_eph dump_eph.o libjpl.a
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c eph2asc.cpp
g++ -o eph2asc eph2asc.o libjpl.a
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c ftest.cpp
g++ -o ftest ftest.o f_strtod.o
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c merge_de.cpp
g++ -o merge_de merge_de.o libjpl.a
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c testeph.cpp
g++ -o testeph testeph.o libjpl.a
g++ -Wall -O3 -Wextra -pedantic -I ~/include -c -DTEST_MAIN sub_eph.cpp
sub_eph.cpp:28:18: fatal error: date.h: No such file or directory
#include "date.h"
^
compilation terminated.
make: *** [makefile:79: sub_eph.o] Error 1
Some Googleing resulted in a likely date.h candidate at:
U of Washington . It isn't entirely clear if that is the appropriate one to include or not.
Thanks in advance for your help.
Hi,
first pass at this. I use 64 bit Ubuntu 16.04. Naive approach
git clone https://github.com/Bill-Gray/jpl_eph
make
g++ -o testeph testeph.o libjpl.a
g++ -Wall -O3 -Wextra -pedantic -c -DTEST_MAIN sub_eph.cpp
sub_eph.cpp:28:18: fatal error: date.h: No such file or directory
compilation terminated.
also there is a reference to llunar ?
regards
Andy
Hello!
We've been using this code together with integrat and astcheck (https://www.projectpluto.com/astcheck.htm) to cross-match detected transients to known solar system bodies. As of a few weeks ago, the jpleph.cpp routine started throwing this error:
integrat: jpleph.cpp:328: void interp(interpolation_info*, const double*, const double*, unsigned int, unsigned int, unsigned int, int, double*): Assertion `tc >= -1.' failed.
We're trying to figure out what causes this but don't have a fix yet. Is this a known issue that has a fix?
Thanks for your help,
Kishalay.
Hallo Roger here,
please add a composer.json so it works with repro manager thanks
Hi Bill,
Thanks for creating this utility, it's saved me a lot of work! Fifteen year s ago, and with no Linux experience, I had to get FORTRAN running on a Windows PC when I needed to create a binary ephemeris file for the ASCOM Platform that I support.
I'm trying to create a sub-set of the ascp1900.421 DE421 ephemeris file to cover just the years 2020 to 2050 rather than 1900 to 2050 and thought that the asc2eph -r2020,2050 parameter that filters output records would do the trick, but it only seems to work when the ASCII data is supplied as a collection of small files, some of which can be ignored if they are outside the required date range.
I have managed to do what I want by changing asc2eph line 644 to read:
for (year = 1900; year <= year_end; year += year_step)
which processes the ascp1900.421 file and outputs the subset I'm looking for, but this is obviously a kludge.
I've tested the resulting binary file file using the NOVAS 3.1 planet ephemeris functions and the ephemeris data corresponds to the expected date range and the RA/Dec values agree to within a second or so of the USNO web site predictions. However, I'm concerned that there may be side effects that I'm not .aware of.
Do you think this approach is OK and would you consider adding a feature to allow sub-setting regardless of whether the data is in a single file or multiple files?
Best wishes, Peter
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.