Hi Datz_cozee75,
When did fall begin? Is there only one answer to that question?
A quick reading of Wikipedia leads me to believe that there are plenty of different definitions of the beginnings and ends of the seasons, depending on region and culture. But apparently in North America (aside from the simpler meteorological definitions based on calendar months), it's the March & September equinoxes and the June & December solstices. That also seems to match with your definition, "fall occurs exactly when the sun sets in the west".
how long was the day today?
A bit more research, and CPAN comes to the rescue. First, the output:
At 21.3N 157.816667W: In 2016: Spring begins on the March equinox at 2016-03-19 18:29:48 HST. Sunrise is at 06:32:58 HST, sunset is at 18:40:50 HST, and the day is 12 hours, 7 minutes, and 52 seconds long. Summer begins on the June solstice at 2016-06-20 12:33:55 HST. Sunrise is at 05:48:34 HST, sunset is at 19:14:27 HST, and the day is 13 hours, 25 minutes, and 53 seconds long. Fall begins on the September equinox at 2016-09-22 04:20:41 HST. Sunrise is at 06:18:46 HST, sunset is at 18:24:11 HST, and the day is 12 hours, 5 minutes, and 25 seconds long. Winter begins on the December solstice at 2016-12-21 00:44:00 HST. Sunrise is at 07:03:22 HST, sunset is at 17:53:41 HST, and the day is 10 hours, 50 minutes, and 19 seconds long. In 2017: Spring begins on the March equinox at 2017-03-20 00:28:31 HST. Sunrise is at 06:32:16 HST, sunset is at 18:41:04 HST, and the day is 12 hours, 8 minutes, and 48 seconds long. Summer begins on the June solstice at 2017-06-20 18:23:42 HST. Sunrise is at 05:48:31 HST, sunset is at 19:14:24 HST, and the day is 13 hours, 25 minutes, and 53 seconds long. Fall begins on the September equinox at 2017-09-22 10:01:07 HST. Sunrise is at 06:18:43 HST, sunset is at 18:24:25 HST, and the day is 12 hours, 5 minutes, and 42 seconds long. Winter begins on the December solstice at 2017-12-21 06:27:50 HST. Sunrise is at 07:03:15 HST, sunset is at 17:53:33 HST, and the day is 10 hours, 50 minutes, and 18 seconds long.
And the code:
I know this doesn't address the "as function of space" part of the question, but still, a fun little weekend project :-)
Update: Perhaps Astro::Coord::ECI::Sun could be useful?
Regards,
-- Hauke D
In reply to Re: calculate length of day as function of space at onset of fall
by haukex
in thread calculate length of day as function of space at onset of fall
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |