Skip to content

helgee/LegacyEphemeris.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LegacyEphemeris

Build Status

Coverage Status

codecov.io

Usage

using JPLEphemeris.ASCII

# Download and convert ephemeris DE421
getephem(421)

# Load ephemeris DE421
eph = Ephemeris(421)

# 2014-01-01T00:00 in Julian days
jd = 2456658.5

# Position of Mercury w.r.t. the Solar System's barycentre at 2014-01-01T00:00
# [km]
pos = position(eph, "mercury", jd)

# Velocity of Mercury w.r.t. the Solar System's barycentre at 2014-01-01T00:00
# [km/day]
vel = velocity(eph, "mercury", jd)

# Complete state vector (position and velocity) for a range of Julian days
st = state(eph, "mercury", jd:jd+100)

# The ephemeris also contains the set of constants with which it was calculated
# e.g. the Astronomical Unit (AU)
au = eph.constants["AU"]

# Close ephemeris file
close(eph)

Available Celestial Bodies

  • Mercury: "mercury"
  • Venus: "venus"
  • Earth-Moon system's barycenter: "earthmoon"
  • Mars: "mars"
  • Jupiter: "jupiter"
  • Saturn: "saturn"
  • Uranus: "uranus"
  • Neptune: "neptune"
  • Pluto: "pluto"
  • Moon (geocentric): "moon"
  • Sun: "sun"
  • Librations: "librations"
  • Nutations: "nutations"

About

Legacy ASCII API of JPLEphemeris.jl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages