Almanac data, sun, moon,, Detailed source ?

sarabande

Well-Known Member
Joined
6 May 2005
Messages
36,182
Visit site
Midwinter boredom is setting in. I normally print off a calendar and astronomical data for sun and moon from a commercial site, but want to create a customised layout and graphs in a spreadsheet.

HMSO has a source

HMNAO: 2020 Daylight/Moonlight Diagrams for Taunton

but it's .pdf.


Can some kind soul please point me towards a source which is tuneable for a specific UK location, and which will download

Morning
astronomical twilight
nautical twilight
sunrise

Noon (various)

Evening
sunset
nautical twilight
astronomical twilight

Moonrise
Moonset
Moon phase


The objective is to print out a table for each month with the above data, and a pretty graph with lots of happy colours


TIA
 
Good explanation of Civil, Nautical and Astronomical twilights/dusk/dawn/night here.

To produce a calendar giving this info for a specific location? Interesting exercise. It can all be extracted from my tables, but I fear that's not what Sarabande wants.

PS. 2020 Sun Almanac now available for download.
 
Doesn't provide the data you were after but the wonderful windy has a plugin which might be interesting >>
SS5a1b9.png


Go into the menu and look in 'install windy plugin' , it's called sun position. :cool:
 
This, and associated pages, provides all the info you mention (and a lot more), and can be set to your particular location of interest -
Sunrise and sunset times in Tiverton

P.S.
(1) I've just successfully copied and pasted into MS Excel from the sun tables from the link I gave above.

(2) If you are determined to use another source, I've also just remembered that if you are using Excel for your spreadsheet, there's a newish facility which apparently allows you to take a photo of dataset and it will read it into your spreadsheet. I've not used it, but guess that it might also allow you to use a section clipped out of a pdf for the image it's reading for the data.
 
Last edited:
Tks everyone.

I have dug into HMNautical Almanac pages, and there's loads of data as .pdf tables, which is quite useful

HM Nautical Almanac Office: On-line Data


The search continues for downloadable raw data so that I can make my own graphs.
Well, new year and all that with the usual few weeks of 'must learn more this year...', with Python on the list. So really quick play you just could be in luck, a bit anyway, maybe..
So a table with daily data you want?

some code already which prob could be altered gets this.

(Python) Retrieve the sunrise and sunset times from Google

>>> get_sunrise_sunset(37,-8)
http://api.sunrise-sunset.org/json?lat=37.000000&lng=-8.000000&2020-01-05&formatted=0
Sunrise = 07:45:34, Sunset = 17:29:13
Total daylight = 9:43:39
Daylight in minutes = 583.65
Sunrise in minutes = 465.56666666666666
Sunset in minutes = 1049.2166666666667
 
Something like (there's more) ......
Comes from a couple of web sites>
Sunset and sunrise times API - Sunrise-Sunset.org
IP Geolocation API Astronomy API
With a little bit of python doing the work.

Code:
Lat =  37 long =  -8
From 2020-01-05 to 2020-01-07

Date =  2020-01-05
civil_twilight_begin  6:44:36 AM
Sunrise =  07:46
Solar Noon = 12:37
Sunset = 17:29
Moonrise =  13:40
Moonset =  02:19


Date =  2020-01-06
civil_twilight_begin  6:44:40 AM
Sunrise =  07:46
Solar Noon = 12:38
Sunset = 17:30
Moonrise =  14:12
Moonset =  03:18


Date =  2020-01-07
civil_twilight_begin  6:44:43 AM
Sunrise =  07:46
Solar Noon = 12:38
Sunset = 17:31
Moonrise =  14:48
Moonset =  04:19

or ..

Code:
Lat =  54 long =  3
From 2020-07-05 to 2020-07-06
Date =  2020-07-05
civil_twilight_begin  12:59:31 AM
Sunrise =  05:24
Solar Noon = 13:53
Sunset = 22:21
Moonrise =  23:00
Moonset =  05:17


Date =  2020-07-06
civil_twilight_begin  1:02:14 AM
Sunrise =  05:25
Solar Noon = 13:53
Sunset = 22:20
Moonrise =  23:39
Moonset =  06:21
 
Tweaked a bit, any good to you? I could send a years worth in a text doc if you want.

Lat = 54 long = 0 From 2020-01-06 to 2020-01-07

Date = 2020-01-06
Astro Twilight begin = 6:06:04 AM
Naut Twilight begin = 6:49:02 AM
Sunrise = 08:18
Solar Noon = 12:05:23 PM
Sunset = 15:54
Naut Twilight end = 5:21:45 PM
Astro Twilight end = 6:04:42 PM
Moonrise = 12:59
Moonset = 03:21

Date = 2020-01-07
Astro Twilight begin = 6:05:52 AM
Naut Twilight begin = 6:48:46 AM
Sunrise = 08:17
Solar Noon = 12:05:50 PM
Sunset = 15:56
Naut Twilight end = 5:22:53 PM
Astro Twilight end = 6:05:48 PM
Moonrise = 13:23
Moonset = 04:35
 

Attachments

Last edited:
If you're any good with Python, there's a programme called pyAlmanac which will compute and tabulate it all for you.

You could change the output formatting to anything you want.

aendie/Pyalmanac-Py3
 
Several steps forward; many thanks for the help.

One step backwards in that my programming skills are barely above the level of the Jacquard loom.


I now have the HMNA data as .pdf for each month. Now to transfer that to Libre Office as a table, thence to Libre Calc as a spreadsheet, thence to make some pretty graphs. Each journey starts with a little step.


RPies should be collected on Thurs. :) :) :) I will be investing on one of the Starter packs like this:-

Freenove Ultimate Starter Kit for Raspberry Pi 4 B 3 B+, 434 Pages Detailed Tutorials, Python C Java, 223 Items, 57 Projects, Learn Electronics and Programming, Solderless Breadboard: Amazon.co.uk: Computers & Accessories

so that I can frighten myself properly.
 
Several steps forward; many thanks for the help.

One step backwards in that my programming skills are barely above the level of the Jacquard loom.


I now have the HMNA data as .pdf for each month. Now to transfer that to Libre Office as a table, thence to Libre Calc as a spreadsheet, thence to make some pretty graphs. Each journey starts with a little step.


RPies should be collected on Thurs. :) :) :) I will be investing on one of the Starter packs like this:-

Freenove Ultimate Starter Kit for Raspberry Pi 4 B 3 B+, 434 Pages Detailed Tutorials, Python C Java, 223 Items, 57 Projects, Learn Electronics and Programming, Solderless Breadboard: Amazon.co.uk: Computers & Accessories

so that I can frighten myself properly.


Once you've managed to put the operating system on to the SD card, it should boot in to a nice, if basic desktop.

Run the config programme on first boot and it will have a few options. Make sure you enable SSH (so you can connect remotely) and expand the file system to use the full SD card.

Then it's quite simple - there's an appstore, search it, install programmes.

It uses Python as it's quite a readable language and has huge support for basic to complex tasks.
 
Top