tofas_extras

Crates.iotofas_extras
lib.rstofas_extras
version0.2.9
sourcesrc
created_at2024-04-13 17:29:02.925302
updated_at2024-11-09 14:41:31.945314
descriptionTranslation of fundamental astronomical subroutines
homepage
repositoryhttps://github.com/berke/tofas
max_upload_size
id1207717
size16,099
Berké Durak (berke)

documentation

README

tofas

This is a translation and an adaptation of selected subroutines from the IAU SOFA library, based on the Fortran version.

Using pure Rust code has benefits such as better optimization, no compilation or linking headaches and the safety guarantees from the compiler.

I also provide a nicer interface than the Fortran (or C) routines. For example the different kinds of time (TAI, TT, UT1, etc.) are wrapped in separate types.

The subroutines are sufficient for LEO Earth observation evaluation purposes, in particular for computing the Sun angles.

The dependencies have been kept to a minimum.

Test vectors generated using the 2017-04-20 Fortran 77 version of SOFA are included, as well as the F90 code to generate them.

Significant changes

  • 0.2.9: Add HMS arguments to julian_tool, add calendar tests
  • 0.2.8: Normalize Geodetic360 angles to [-180,180[ and [-90,90[
  • 0.2.7: Reorganize Sun angle calculator
  • 0.2.6: Add julian_tool in examples
  • 0.2.5: Make Ellipsoid fields public

Author

Berke DURAK bd@exhrd.fr

Commit count: 38

cargo fmt