meeus

Implementation of "Astronomical Algorithms" by Jean Meeus

  • 所有者: soniakeys/meeus
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Meeus

Build Status GoDoc Go Walker

Selected algorithms from the book "Astronomical Algorithms"
by Jean Meeus, following the second edition, copyright 1998,
with corrections as of August 10, 2009.

Repository organization

The branch "master" has the current version. Tags exist with "semantic
versions" with a three-part major.minor.fix format like v3.0.0. Older
versions can be checked out by tag. Also a branch or branches should exist
for older versions.

Beginning with v3.0.0, code will be organized as a vgo "module" in a
subdirectory, named like v3 corresponding to the current major version.

Package organization

Package meeus is a documentation-only package. Algorithms are implemented
in subdirectories under meeus, one for each chapter of the book. In addition
there is a package "base" with additional functions that may not be described
in the book but are useful with multiple other packages.

See meeus package documentation for a chapter title cross-reference.

Install

VSOP87

Routines of the planetposition package require "VSOP87" data files. These
files should be available from public sources, for example
VisieR. The files needed
by planetposition are the VSOP87 "B" files. It is sufficient to download
the eight files

VSOP87B.ear  VSOP87B.mar  VSOP87B.nep  VSOP87B.ura
VSOP87B.jup  VSOP87B.mer  VSOP87B.sat  VSOP87B.ven

There are no requirements on where you place these files in your file system
but you may find it convenient to create a directory for them and set an
environment variable VSOP87 to this directory.

Install package software with go get

Technically, go get github.com/soniakeys/meeus/... is sufficient.

The tests also require the sexagesimal package, so use the -t option to prompt
go get to find it as a test dependency:

go get -t github.com/soniakeys/meeus/...

Tests

With all eight VSOP87 files dowloaded as described above, and with an
environment variable set to their location, then from the meeus directory

go test ./...

works as usual to run all tests in all subdirectories of meeus.

To run all tests except for those requiring planet positions computed from
the VSOP87 files, use

go test -tags nopp ./...

("nopp" for no planet positions)

Vgo

Experimentally, you can try vgo.

To run package tests, clone the repository -- anywhere! it doesn't have to
be under GOPATH -- and from the cloned directory run

vgo test all

Vgo will fetch the sexagesimal test dependency as needed and run all
package tests.

All software in this repository is copyright Sonia Keys and licensed with the
MIT license.

主要指标

概览
名称与所有者soniakeys/meeus
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2012-12-20 23:01:34
推送于2019-03-01 01:53:37
最后一次提交2018-05-09 21:23:01
发布数7
最新版本名称v3.0.1 (发布于 )
第一版名称v0.1 (发布于 )
用户参与
星数355
关注者数22
派生数60
提交数255
已启用问题?
问题数14
打开的问题数4
拉请求数3
打开的拉请求数2
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?