Astrodynamics coordinate frame transforms
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+27 -5
+18 -5
README.md
··· 6 6 7 7 ## Installation 8 8 9 + Install with opam: 10 + 11 + ```sh 12 + $ opam install coordinate 9 13 ``` 10 - opam install coordinate 14 + 15 + If opam cannot find the package, it may not yet be released in the public 16 + `opam-repository`. Add the overlay repository, then install it: 17 + 18 + ```sh 19 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 20 + $ opam update 21 + $ opam install coordinate 11 22 ``` 12 23 13 24 ## Usage 14 25 15 26 ```ocaml 16 27 (* Convert SGP4 TEME output to geodetic coordinates *) 17 - let gmst = Coordinate.gmst_of_unix unix_time in 18 - let ecef = Coordinate.teme_to_ecef ~gmst teme_pos in 19 - let geo = Coordinate.ecef_to_geodetic ecef in 20 - Printf.printf "Lat: %.4f Lon: %.4f Alt: %.1f km\n" geo.lat geo.lon geo.alt 28 + let gmst = Coordinate.gmst_of_unix unix_time 29 + let ecef = Coordinate.teme_to_ecef ~gmst teme_pos 30 + let geo = Coordinate.ecef_to_geodetic ecef 31 + let () = 32 + Printf.printf "Lat: %.4f Lon: %.4f Alt: %.1f km\n" 33 + geo.lat geo.lon geo.alt 21 34 ``` 22 35 23 36 ## API Overview
+1
coordinate.opam
··· 11 11 "dune" {>= "3.21"} 12 12 "fmt" 13 13 "ptime" 14 + "mdx" {with-test} 14 15 "vec3" 15 16 "odoc" {with-doc} 16 17 ]
+6
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files 7 + README.md 8 + ) 9 + (libraries coordinate))
+2
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 (name coordinate) 3 4 (source (tangled gazagnaire.org/ocaml-coordinate)) 4 5 (formatting (enabled_for ocaml)) ··· 16 17 (depends 17 18 fmt 18 19 ptime 20 + (mdx :with-test) 19 21 vec3))