Anybody know where I can download tables of sunrise/sunset times? Lots of websites will tell you what they are, and I found a one-month download, but I want to grab a year's worth…
Anybody know where I can download tables of sunrise/sunset times? Lots of websites will tell you what they are, and I found a one-month download, but I want to grab a year's worth…
@timbray the traditional place would be nautical almanacs. Try here:
@timbray https://nrc.canada.ca/en/research-development/products-services/software-applications/sun-calculator/ it will give you a text version you can then parse.
@timbray if you're willing to do some Elisp, there's solar-sunrise-and-sunset
@timbray I _just_ looked at this in R, Go, and Python. A bunch of the libraries are extremely junky. It’ll take some trial and error to find the right one.
@timbray If you have a list of latitude and longitude coordinates, you could loop over it and pass it to this PHP function: https://www.php.net/manual/en/function.date-sun-info.php
@timbray US Naval Observatory website:
@timbray PHP has a function for it: https://www.php.net/manual/en/function.date-sun-info.php
@timbray Laughably far from what you asked, but Meeus' "Astronomical Algorithms" is the standard text. Solar coordinates are straightforward, but still ~12 intermediate easy calcs. I can send you pages if desired. (Protip: Don't fall down tide-prediction rabbit-hole. ~24 significant components!!!! And yet Kelvin did well!)
@timbray Why stop with sunrise and sunset. When everything in the sky happens: https://shopatsky.com/products/2024-skygazers-almanac-50-degrees-north
@timbray Plenty of Python libraries out there to generate sunrise and sunset at any location!
@timbray @dancinyogi
How good is your math/programming. I believe a year is easy to tabulate with the right tools!
Calling all #Math / #Maths people! We have a man here who needs you to over engineer something for a simple table output!
@timbray Tried here? aa.usno.navy.mil/data/RS_O...
@timbray Research Unix's or Plan 9's astro can give it to you in seconds if you know the lat/long. Give it the -l flag for location, -d flag for date, and -c365 for a year's worth. Probably -k for local (kitchen) time.
Script away.
bismarck=% astro -kc3|grep 'The sun'
The sun sets at 20:02:28 AED
The sun rises at 06:15:17 AED
The sun sets at 20:01:42 AED
The sun rises at 06:16:17 AED
The sun sets at 20:00:53 AED
The sun rises at 06:17:17 AED
@timbray “C-u C-u M-x sunrise-sunset” you run emacs right? https://ftp.gnu.org/old-gnu/Manuals/emacs/html_node/emacs_422.html
@timbray "cpan Astro::Sunrise". You just gave me incentive to tweak my curtain automation.
@timbray https://dev.timeanddate.com/astro/ … and if you ever had spare time in DC after work & proper friends, and then wanted to meet fediverse strangers, I can recommend a couple dives on your favored side of town. I enjoy your reflections of your visits.