• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

JuliaAstro/JPLEphemeris.jl: JPL ephemerides for Julia

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

JuliaAstro/JPLEphemeris.jl

开源软件地址:

https://github.com/JuliaAstro/JPLEphemeris.jl

开源编程语言:

Julia 100.0%

开源软件介绍:

JPLEphemeris.jl

Travis Status Build status PkgEval v5

The JPL Development Ephemerides are the results of simulations of the Solar System used for spacecraft navigation and astronomical purposes. They are published as SPK kernel files which contain sets of Chebyshev polynomial coefficients with which the position and velocity of the Solar System's planets can be interpolated with high precision for all dates covered by the ephemeris.

This package provides functionality to read SPK files and compute the position and velocity of the planets directly from Julia.

Installation

The package can be installed through Julia's package manager.

Pkg.add("JPLEphemeris")

Usage

using JPLEphemeris

# Load the DE430 SPK kernel
spk = SPK("de430.bsp")

# List the available segments
print_segments(spk)

# 2016-01-01T00:00 in Julian days
jd = Dates.datetime2julian(DateTime(2016,1,1,0,0,0))

# Position of Earth's barycenter w.r.t. the Solar System's barycenter at 2016-01-01T00:00
# [km]
pos = position(spk, "earth barycenter", jd)

# Velocity of Earth w.r.t. Earth's barycentre at 2016-01-01T00:00
# [km/s]
vel = velocity(spk, "earth barycenter", "earth", jd)

# Compute the state vector (position and velocity) of Earth's barycenter (NAIF ID: 3)
# w.r.t. to the Solar System's barycenter (NAIF ID: 0) for a range of Julian days
st = state(spk, 0, 3, jd:jd+100)

# Two-part Julian dates (day number and fraction) can be used for higher precision.
# For example for 2016-01-01T12:00:
st = state(spk, 0, 3, jd, 0.5)

ASCII API

The ASCII API that was originally included with this package has been moved to LegacyEphemeris.jl.

Validation

The package's test suite uses test files provided by JPL to confirm that the results are correct.

Acknowlegements

Most of this is based on the excellent jplephem library by Brandon Rhodes. Please use it if you need similar functionality in Python.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
JuliaAudio/LibSndFile.jl: Julia Interface to libsndfile发布时间:2022-07-09
下一篇:
rob-luke/Neuroimaging.jl: Neuroimaging in Julia发布时间:2022-07-09
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap