Sundial

class sundialy.AnalemmaticHorizontal(latitude: int | float, longitude: int | float, width: int | float = 5, timezone: int | float = 0, correct_for_longitude: bool = False, years: int | Iterable[int] = 2025, elevation: int | float = 0, show: bool = True)

The class that creates the analemmatic sundial.

Parameters:
  • latitude – The latitude of the sundial.

  • longitude – The longitude of the sundial.

  • width – The width of the sundial.

  • timezone – The timezone that the sundial is in.

  • correct_for_longitude – Whether to add the longitude correction.

  • years – The year(s) to calculate the data for.

  • elevation – The elevation of the sundial.

  • show – Whether to show the images after creating them.

height The height of the analemmatic sundial.

gnomon_movement Where the gnomon should be each day.

hour_locations Where each hour should be placed on the ellipse.

significant_eot The important Equation of Time values.

average_eot The Equation of Time every day.

create_sundial(sundial_filename: str | None = None, corrections_filename: str | None = None) None

Creates the sundial and the correction chart.

Parameters:
  • sundial_filename – If the filename is provided the sundial is saved.

  • corrections_filename – If the filename is provided the correction chart is saved.