github.com/wselwood/orbcalc

Orbital mechanics on minor planets using golang


Keywords
asteroids, astronomical-algorithms, golang, orbital-dynamics, orbital-mechanics, space
License
Apache-2.0
Install
go get github.com/wselwood/orbcalc

Documentation

Orb Calc

A library to do orbital mechanics in go.

Every object in the solar system

OrbViwer

Currently very basic and work in progress, the basic orbital propogation with the mean motion method should work for most cases. Hyperbolic and parabolic orbits have not been tested, if you find bugs please let us know.

Example in main.go which reads in the MPC orbit file propogates them forward by one day and then writes the position vectors to a file. See also the example and tools folders for more examples

There is a lot still to do:

  • Reference frame transformations.
  • Benchmarking
  • Documentation

If you want to help with these please feel free to get in contact.

Reason

This project is designed to alow you to work out the position in space of an object after some time given the normal orbital elements.

The main usecase is to be able to plot the locations of asteroids over time.

Design Goals

  1. Be Accurate
  2. Be Fast
  3. Be Easy To Use

Contributing

Fantastic. We welcome an help you can give. We especially welcome bug reports and case studies of uses. If you have managed to successfully use this project please let us know. If you have found a pain point please let us know, we can probably make it easier to use. If you are not sure if something is a bug please rase it any way. Worst case it is something we need to document better.

If you want to provide code support to the project we use the "usual" github process, issues, forks and pull requests.

Building from source

Prerequistits:

  • Golang 1.11+
git clone git@github.com:wselwood/orbcalc.git
cd orbcalc
go build

We use the Go module system which should take care of the dependencies for you. See the examples and tools folders for more information about usage

Thanks

This project owes a great debt of thanks to the poliastro project for the algorithms and examples of how things should be done.

Contributors

The following people have helped improve this project: