eph_jpl_cr
Version, currently master branch1 version
- master branchlatestNov 12, 2021
github.com/soya-daizu/eph_jpl_cr
Crystal port of EphJpl, an ephemeris calculation tool in Ruby by JPL method.
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
eph_jpl_cr:
github: soya-daizu/eph_jpl_cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.1.1- License
- MIT
- Author
- soya_daizu
- Target
samplefrom sample/sample.cr
Dependencies
This version declares no dependencies.
README
EphJplCr
Crystal port of Ruby library EphJpl, which calculates ephemeris data by JPL(NASA Jet Propulsion Laboratory) method.
See the original libary for more detail.
Installation
-
Add the dependency to your
shard.yml:dependencies: eph_jpl_cr: github: soya-daizu/eph_jpl_cr -
Run
shards install
Usage
require "eph_jpl_cr"
session = EphJplCr::Session.new(
bin_path: "/path/to/JPLEPH",
use_memory_io: true # load all binary data to memory, uses more memory (~400MB) but significantly faster lookup
)
# Target celestial body num, center celestial body num, julian day
session.set_args(11, 3, 2457465.5)
session.calc #=> [x, y, z-position, x, y, z-velocity]
Contributing
- Fork it (https://github.com/soya-daizu/eph_jpl_cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
-
soya_daizu - creator and maintainer
-
komasaru - author of the original Ruby library
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Nov 12, 2021
- Crystal
1.1.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/soya-daizu/eph_jpl_cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1