-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Practical Astronomy in Rust | ||
|
||
Algorithms from "[Practical Astronomy with your Calculator or Spreadsheet](https://www.amazon.com/Practical-Astronomy-your-Calculator-Spreadsheet/dp/1108436072)" by Peter Duffett-Smith, implemented in Rust. API documentation is published [here](https://jfcarr.github.io/practical-astronomy-rust/). | ||
|
||
If you're interested in this topic, please buy the book! It provides far more detail and context. | ||
|
||
## Library Functions - Status | ||
|
||
### Date/Time | ||
|
||
- [x] Calculate -> Date of Easter | ||
- [x] Convert -> Civil Date to Day Number | ||
- [x] Convert -> Civil Time <-> Decimal Hours | ||
- [x] Extract -> Hour, Minutes, and Seconds parts of Decimal Hours | ||
- [x] Convert -> Local Civil Time <-> Universal Time | ||
- [x] Convert -> Universal Time <-> Greenwich Sidereal Time | ||
- [x] Convert -> Greenwich Sidereal Time <-> Local Sidereal Time | ||
- [x] Calculate -> Day of Week for Julian Date | ||
|
||
### Coordinates | ||
|
||
- [x] Convert -> Angle <-> Decimal Degrees | ||
- [x] Convert -> Right Ascension <-> Hour Angle | ||
- [x] Convert -> Equatorial Coordinates <-> Horizon Coordinates | ||
- [x] Calculate -> Obliquity of the Ecliptic | ||
- [x] Convert -> Ecliptic Coordinates <-> Equatorial Coordinates | ||
- [x] Convert -> Equatorial Coordinates <-> Galactic Coordinates | ||
- [x] Calculate -> Angle between two objects | ||
- [x] Calculate -> Rising and Setting times for an object | ||
- [x] Calculate -> Precession (corrected coordinates between two epochs) | ||
- [x] Calculate -> Nutation (in ecliptic longitude and obliquity) for a Greenwich date | ||
- [x] Calculate -> Effects of aberration for ecliptic coordinates | ||
- [x] Calculate -> RA and Declination values, corrected for atmospheric refraction | ||
- [x] Calculate -> RA and Declination values, corrected for geocentric parallax | ||
- [x] Calculate -> Heliographic coordinates | ||
- [x] Calculate -> Carrington rotation number | ||
- [x] Calculate -> Selenographic (lunar) coordinates (sub-Earth and sub-Solar) | ||
|
||
### The Sun | ||
|
||
- [x] Calculate -> Approximate and precise positions of the Sun | ||
- [x] Calculate -> Sun's distance and angular size | ||
- [x] Calculate -> Local sunrise and sunset | ||
- [x] Calculate -> Morning and evening twilight | ||
- [x] Calculate -> Equation of time | ||
- [x] Calculate -> Solar elongation | ||
|
||
### Planets | ||
|
||
- [x] Calculate -> Approximate position of planet | ||
- [x] Calculate -> Precise position of planet | ||
- [x] Calculate -> Visual aspects of planet (distance, angular diameter, phase, light time, position angle of bright limb, and apparent magnitude) | ||
- [x] Calculate -> Position of comet (elliptical and parabolic) | ||
- [x] Calculate -> Binary star orbit data | ||
|
||
### The Moon | ||
|
||
- [x] Calculate -> Approximate and precise position of Moon | ||
- [x] Calculate -> Moon phase and position angle of bright limb | ||
- [x] Calculate -> Times of new Moon and full Moon | ||
- [x] Calculate -> Moon's distance, angular diameter, and horizontal parallax | ||
- [x] Calculate -> Local moonrise and moonset | ||
|
||
### Eclipses | ||
|
||
- [x] Calculate -> Lunar eclipse occurrence and circumstances | ||
- [x] Calculate -> Solar eclipse occurrence and circumstances |