timbray@cosocial.ca
timbray@cosocial.ca

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…

|
Embed
Progress spinner
simon_brooke@mastodon.scot
simon_brooke@mastodon.scot

@timbray the traditional place would be nautical almanacs. Try here:

thenauticalalmanac.com/

|
Embed
Progress spinner
vfrunza@cosocial.ca
vfrunza@cosocial.ca

@timbray nrc.canada.ca/en/research-deve it will give you a text version you can then parse.

|
Embed
Progress spinner
kickingvegas@sfba.social
kickingvegas@sfba.social

@timbray if you're willing to do some Elisp, there's solar-sunrise-and-sunset

|
Embed
Progress spinner
timbray@cosocial.ca
timbray@cosocial.ca

@vfrunza It's better than a text version, it's a CSV! Thanks

|
Embed
Progress spinner
matt@proud.social
matt@proud.social

@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.

|
Embed
Progress spinner
ramsey@phpc.social
ramsey@phpc.social

@timbray If you have a list of latitude and longitude coordinates, you could loop over it and pass it to this PHP function: php.net/manual/en/function.dat

|
Embed
Progress spinner
drinky@mastodon.social
drinky@mastodon.social

@timbray sunrisesunset.io/api/ ?

|
Embed
Progress spinner
AlaskaWx@alaskan.social
AlaskaWx@alaskan.social

@timbray US Naval Observatory website:

aa.usno.navy.mil/data/RS_OneYe

|
Embed
Progress spinner
drinky@mastodon.social
drinky@mastodon.social

@timbray PHP has a function for it: php.net/manual/en/function.dat

|
Embed
Progress spinner
Lobrien@hachyderm.io
Lobrien@hachyderm.io

@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!)

Lord Kelvin's tide-predicting analog computer

|
Embed
Progress spinner
engelke@hachyderm.io
engelke@hachyderm.io

@timbray Why stop with sunrise and sunset. When everything in the sky happens: shopatsky.com/products/2024-sk

|
Embed
Progress spinner
edwiebe@mstdn.ca
edwiebe@mstdn.ca

@timbray I've got a small Fortran code I use for this if you want it.

|
Embed
Progress spinner
bnlawrence@mastodon.nz
bnlawrence@mastodon.nz

@timbray Plenty of Python libraries out there to generate sunrise and sunset at any location!

|
Embed
Progress spinner
taatm@mathstodon.xyz
taatm@mathstodon.xyz

@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!

|
Embed
Progress spinner
In reply to
cfrandall
cfrandall

@timbray Tried here? aa.usno.navy.mil/data/RS_O...

|
Embed
Progress spinner
robpike@hachyderm.io
robpike@hachyderm.io

@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

|
Embed
Progress spinner
dole@fosstodon.org
dole@fosstodon.org

@timbray “C-u C-u M-x sunrise-sunset” you run emacs right? ftp.gnu.org/old-gnu/Manuals/em

|
Embed
Progress spinner
jwz@mastodon.social
jwz@mastodon.social

@timbray "cpan Astro::Sunrise". You just gave me incentive to tweak my curtain automation.

|
Embed
Progress spinner
rrmutt@mastodon.social
rrmutt@mastodon.social

@jwz @timbray also: sunwait github.com/risacher/sunwait

|
Embed
Progress spinner
http@mastodon.sdf.org
http@mastodon.sdf.org

@timbray

for a full year:

nrc.canada.ca/en/research-deve

|
Embed
Progress spinner
HistoPol@mastodon.social
HistoPol@mastodon.social

@2ndStar

#Astronomy

Hi Amelia, you probably know:

cosocial.ca/@timbray/111851538

Cc @timbray

|
Embed
Progress spinner
jes5199@mastodon.social
jes5199@mastodon.social

@timbray that’s on my todo list 😅

|
Embed
Progress spinner
mbradley@mastodon.social
mbradley@mastodon.social

@timbray 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.

|
Embed
Progress spinner
the_roamer@mastodonapp.uk
the_roamer@mastodonapp.uk

@robpike @timbray

Lovely!

|
Embed
Progress spinner