Method Deck / astronomy

Solar declination from day of year

Estimates the sun's declination angle for a given day of the year using Cooper's formula.

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

Try it

Inputs

Outputs

Steps

  1. Cooper's formula: declination = 23.45 * sin( (360/365) * (284 + N) ), where N is the day of year and the sine argument is in degrees.
  2. Convert the argument to radians before taking the sine, since standard math libraries use radians.
  3. Round the result to 2 decimals.
  4. This is a smooth approximation to Earth's actual declination curve (accurate to roughly within 1 degree); it does not model leap-year or orbital-eccentricity irregularities.

Constants

Sources

Worked example and test vectors

NameInputsAnswer
worked example{"day_of_year":172}23.45 degrees
test vector: December solstice{"day_of_year":355}-23.45 degrees

Published card