Python-based lunar phase calculation and visualization project
Moon-Phase-Calculator is a Python project designed to calculate and visualize the current phase of the Moon based on a given date. It combines astronomical calculations with simple visualization, suitable for astronomers, photographers, and enthusiasts.
- Calculates the Moon's phase for today or any specified date.
- Displays textual representation of the Moon phase (e.g., New Moon, First Quarter, Full Moon).
- Computes approximate illumination percentage.
- Outputs results in a clear, readable format for easy observation planning.
📁 Moon-Phase-Calculator/ │ ├── phase.py → English calculation and visualization script ├── evre.py → Turkish calculation and visualization script └── README.md → This file
- Ensure Python 3.x is installed.
- Run the script for today's Moon phase:
python phase.py
The phase of the Moon is computed based on its age in the synodic month (~29.53 days):
Phase = (Current Date - Known New Moon Date) mod 29.53
Where:
- New Moon
- Waxing Crescent
- First Quarter
- Waxing Gibbous
- Full Moon
- Waning Gibbous
- Last Quarter
- Waning Crescent
Illumination (%) = (1 - cos(Phase × 2π / 29.53)) / 2 × 100
This approximation provides the visible illuminated fraction of the Moon's disk.