UNPKG

solar-calculator

Version:

Equations for computing the position of the Sun.

9 lines (7 loc) 305 B
import meanLongitude from "./meanLongitude"; import equationOfCenter from "./equationOfCenter"; // Given t in J2000.0 centuries, returns the sun’s true longitude in degrees. // https://en.wikipedia.org/wiki/True_longitude export default function(t) { return meanLongitude(t) + equationOfCenter(t); }