Sun Position in 900 Bytes | Volodymyr Agafonkin | Observable
js
Author
Volodymyr Agafonkin
@mourner
Engineer at Mapbox, creator of Leaflet, algorithms geek, open source enthusiast, musician, father of twin girls, Ukrainian. 🇺🇦
Comments (2)
David Kirkby
Jul 1, 2021
Comparing with p.164 of Meeus, I think the `c` term in `l` should use sin(Omega), not cos(Omega).
Volodymyr Agafonkin
Jul 1, 2021
Good catch! Fixed now (it's sin(OZmega) in `l` but cos(Omega) in `e`). Doesn't look like it's influencing the results much so it must be a small term in the overall formula.
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Explore
Forum
Bluesky
YouTube
X
15
Follow
Follow
Sun Position in 900 Bytes | Volodymyr Agafonkin | Observable