# Time 2, Exercise 1: noon shadow of a 1 m gnomon at two latitudes, and day hours # For each latitude and date: noon altitude = 90 - latitude + declination, # shadow = height / tan(altitude). Then the length of a "day hour" (one twelfth # of the daylight) and a "night hour" (one twelfth of the darkness). import math GNOMON = 1.0 DATES = (("June solstice", 23.44), ("Equinox", 0.0), ("December solstice", -23.44)) def daylight_hours(lat, dec): half = math.degrees(math.acos(-math.tan(math.radians(lat)) * math.tan(math.radians(dec)))) return 2 * half / 15 for lat in (30, 56): print("Latitude", lat) for name, dec in DATES: alt = 90 - lat + dec shadow = GNOMON / math.tan(math.radians(alt)) day = daylight_hours(lat, dec) print(" ", name, "| altitude", round(alt, 2), "| shadow", round(shadow, 2), "m", "| day hour", round(day * 5, 1), "min | night hour", round((24 - day) * 5, 1), "min") # Output when run: # Latitude 30 # June solstice | altitude 83.44 | shadow 0.11 m | day hour 69.7 min | night hour 50.3 min # Equinox | altitude 60.0 | shadow 0.58 m | day hour 60.0 min | night hour 60.0 min # December solstice | altitude 36.56 | shadow 1.35 m | day hour 50.3 min | night hour 69.7 min # Latitude 56 # June solstice | altitude 57.44 | shadow 0.64 m | day hour 86.7 min | night hour 33.3 min # Equinox | altitude 34.0 | shadow 1.48 m | day hour 60.0 min | night hour 60.0 min # December solstice | altitude 10.56 | shadow 5.36 m | day hour 33.3 min | night hour 86.7 min # # Reading the output: the further from the equator, the bigger the swing in # shadow length (0.11 m to 1.35 m at 30 degrees, but 0.64 m to 5.36 m at 56) # and the bigger the swing in the length of an unequal hour (50 to 70 minutes # against 33 to 87). At the equinox every hour is 60 minutes. (day * 5 is # daylight * 60 / 12.) These figures ignore atmospheric refraction.