Method Deck / astronomy

Day length from latitude and solar declination

Estimates the length of daylight for a given latitude and solar declination using the simple sunrise-equation hour angle.

Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.

Try it

Inputs

Outputs

Steps

  1. Sunrise equation: cos(H) = -tan(latitude) * tan(declination), where H is the hour angle of sunrise/sunset in degrees.
  2. If the product makes cos(H) <= -1, the location has continuous daylight (midnight sun); if cos(H) >= 1, continuous night (polar night).
  3. Otherwise H = arccos(cos(H)) in degrees.
  4. Day length in hours = 2 * H / 15, because Earth's rotation moves the hour angle 15 degrees per hour.
  5. Round to 2 decimals.
  6. This is the simple, geometric-horizon classroom version (it ignores atmospheric refraction and the sun's angular radius, both of which the estate's own sunrise card handles with the full NOAA method); treat this card's output as an approximation good to a few minutes.

Constants

Sources

Worked example and test vectors

NameInputsAnswer
worked example{"latitude_deg":40,"declination_deg":23.45}14.85 hours
test vector: winter solstice at the same latitude{"latitude_deg":40,"declination_deg":-23.45}9.15 hours

Published card