A sundial library for python. Create an analemmatic sundial in less than 5 minutes.
Download and install the latest release:
pip install sundialy
-
Includes mypy typings
-
Create a sundial
from sundialy import AnalemmaticHorizontal
# An analemmatic sundial for Los Angeles.
sundial = AnalemmaticHorizontal(latitude=34, longitude=-118)
- View how it will look
sundial.create_sundial("sundial.jpg")
- Use the tools
- SPA (Solar Position Algorithm)
- SAMPA (Solar and Moon Position Algorithm)
- SOLPOS (Solar Position and Intensity)
- Bird (Bird Clear Sky Model)
from sundialy.tools import SPA
spa_results = SPA(2020, 12, 31, 23, 59, 59, 0, 0, 0, 0, pressure=1000, temperature=10, omega=0, gamma=0)
sundialy is licensed under the MIT License. Check out LICENSE for the full text.