package msts
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=b41551c4d48ec1ddffcf9127e6ea95abe813e3c844bb9da11f0d3cedf1a6f021
sha512=c2754d94314a7f0517ceb51308493ef799123b988eda3c8b29ac070a669183460d7376ae15c97b25a7380a6e472e5e4d0549655659303f20fac0342afe108e1c
Description
Dependency-free OCaml library that computes the Moon's geocentric ecliptic position and phase information from a Unix timestamp. Implements the Schlyter Keplerian algorithm with empirical perturbation corrections. Valid over 1900-01-01 through 2100-12-31.
Added to opam-repository:
README
msts
Geocentric lunar ephemeris library for OCaml.
Computes the Moon's ecliptic position and phase from a Unix timestamp.
No dependencies beyond the OCaml standard library.
Valid over 1900–2100, validated against JPL Horizons (DE441).
Requirements
- OCaml ≥ 4.14
- dune ≥ 3.17
Install
opam install mstsUse
let e = Msts.compute (Unix.gettimeofday ()) in
Printf.printf "%s %.1f%% %.0f km\n"
(Msts.phase_name_to_string e.Msts.phase.Msts.name)
(e.Msts.phase.Msts.illuminated_fraction *. 100.0)
e.Msts.position.Msts.distance_kmAdd to your dune file:
(libraries msts)See man 3 msts for the full API reference.
License
ISC
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building msts with each compiler on check.ci.ocaml.org, run of against opam-repository 78c202b. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 0.1.0 (this version) | n/a | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure