Algorithms from Practical Astronomy, implemented in Python
Project description
practical-astronomy-python
Algorithms from Practical Astronomy with your Calculator or Spreadsheet by Peter Duffett-Smith, implemented in Python 3. API documentation is published here.
If you're interested in this topic, please buy the book! It provides far more detail and context.
Unit Tests
If you clone the repo locally, you can run unit tests with the Make utility:
make all-tests
Library Functions
Date/Time
Type | Description |
---|---|
Calculate | Date of Easter |
Convert | Civil Date to Day Number |
Convert | Greenwich Date <-> Julian Date |
Convert | Julian Date to Day-of-Week |
Extract | Day, Month, and Year parts of Julian Date |
Convert | Civil Time <-> Decimal Hours |
Extract | Hour, Minutes, and Seconds parts of Decimal Hours |
Convert | Local Civil Time <-> Universal Time |
Convert | Universal Time <-> Greenwich Sidereal Time |
Convert | Greenwich Sidereal Time <-> Local Sidereal Time |
Coordinates
Type | Description |
---|---|
Convert | Angle <-> Decimal Degrees |
Convert | Right Ascension <-> Hour Angle |
Convert | Equatorial Coordinates <-> Horizon Coordinates |
Calculate | Obliquity of the Ecliptic |
Convert | Ecliptic Coordinates <-> Equatorial Coordinates |
Convert | Equatorial Coordinates <-> Galactic Coordinates |
Calculate | Angle between two objects |
Calculate | Rising and Setting times for an object |
Calculate | Precession (corrected coordinates between two epochs) |
Calculate | Nutation (in ecliptic longitude and obliquity) for a Greenwich date |
Calculate | Effects of aberration for ecliptic coordinates |
Calculate | RA and Declination values, corrected for atmospheric refraction and geocentric parallax |
Calculate | Heliographic coordinates |
Calculate | Carrington rotation number |
Calculate | Selenographic (lunar) coordinates (sub-Earth and sub-Solar) |
The Sun
Type | Description |
---|---|
Calculate | Approximate and precise positions of the Sun |
Calculate | Sun's distance and angular size |
Calculate | Local sunrise and sunset |
Calculate | Morning and evening twilight |
Calculate | Equation of time |
Calculate | Solar elongation |
Planets
Type | Description |
---|---|
Calculate | Approximate and precise position of planet |
Calculate | Visual aspects of planet (distance, angular diameter, phase, light time, position angle of bright limb, and apparent magnitude) |
Calculate | Position of comet (elliptical and parabolic) |
Calculate | Binary star orbit data |
The Moon
Type | Description |
---|---|
Calculate | Approximate and precise position of Moon |
Calculate | Moon phase and position angle of bright limb |
Calculate | Times of new Moon and full Moon |
Calculate | Moon's distance, angular diameter, and horizontal parallax |
Calculate | Local moonrise and moonset |
Eclipses
Type | Description |
---|---|
Calculate | Lunar eclipse occurrence and circumstances |
Calculate | Solar eclipse occurrence and circumstances |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
practical_astronomy-0.0.3.tar.gz
(298.1 kB
view details)
Built Distribution
File details
Details for the file practical_astronomy-0.0.3.tar.gz
.
File metadata
- Download URL: practical_astronomy-0.0.3.tar.gz
- Upload date:
- Size: 298.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e580c29af07ae0618ed74060ed9d6091e2f81ee38900845fc4670b97a11512b9 |
|
MD5 | 51d27021f0c5db375c94b352e419933f |
|
BLAKE2b-256 | a0c14c1d1feb535a7328cc1da78125062ed60d1e2f11879ca3e6a810005ee973 |
File details
Details for the file practical_astronomy-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: practical_astronomy-0.0.3-py3-none-any.whl
- Upload date:
- Size: 49.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 903705909630342d71a4a2311fef496d8c95cfbde705face02a1607073e59dfd |
|
MD5 | 2d5222e1f20bffc72d02b66600da7bea |
|
BLAKE2b-256 | fc43167835ab9cb5bc15f497d56807e30a632075ebb8b06e0687c4143ae3345f |