This project allows one to find an location to see an alignment between the sun and a target (e.g. a mountain). It is available either as a command-line tool (WIP), or as a web interface with a map.
This project would be nothing without Astronomical Algorithms, 1st edition, written by Jean Meeus. It is available online if you know where to look. Dynamic time (ΔT) calculation is performed using formulas provided by NASA; coordinates and distances are computed using Vincenty's formulae.
This project is mostly written in OCaml, and relies on
CalendarLib and js_of_ocaml.
The map shown on the web interface is rendered with Leaflet, using data from OpenStreetMap and tiles from OpenStreetMap-fr.
Solar Alignments is licensed under LGPL v3.
For now, only a shell.nix file is provided.
$ nix-shell
$ dune build --profile releaseThis will build the command-line tool and the web interface.
In no particular order:
- better README;
- better command-line tool;
- compute alignments from the sunrise, as well as arbitrary time ranges.