Giter VIP home page Giter VIP logo

jpl_eph's People

Contributors

alastairuk avatar bill-gray avatar mjuric avatar smoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jpl_eph's Issues

Missing "get_bin.h"

Greetings,

The file

get_bin.h

Is missing from the source tree and the code doesn't compile.

Best,

  • Pedro.

asc2eph fails when compiling DE441

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

date. h missing

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

error while 'sudo make'

opened terminal in the directory and wrote 'sudo make' after copying get_bin.h into the folder. this is the output:

Screenshot_20230408_032922
Screenshot_20230408_032934

Can I get planets' heliocentric coordinates from this project?

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

Sub-setting from a single DE file.

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

add composer.json

Hallo Roger here,
please add a composer.json so it works with repro manager thanks

Assertion error in jpleph.cpp

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.

Missing "date.h"

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.