WXforum.net

Web Weather => Weather Website PHP/AJAX scripting => Custom Website Templates => Topic started by: n7xrd on January 18, 2017, 01:30:02 PM

Title: Moonrise/Moonset
Post by: n7xrd on January 18, 2017, 01:30:02 PM
Seems on my ajax dashboard the moonset is first followed by moonrise shouldn't that be reversed????   the times are correct for each just the placement.
Title: Re: Moonrise/Moonset
Post by: Jáchym on January 18, 2017, 01:33:00 PM
I actually think this makes sense because the set is before the rise, it is not like the Sun where you always have rise before set, look at the times, the moon set is in the morning and then it rises at night.
Title: Re: Moonrise/Moonset
Post by: n7xrd on January 18, 2017, 01:35:23 PM
I actually think this makes sense because the set is before the rise, it is not like the Sun where you always have rise before set, look at the times, the moon set is in the morning and then it rises at night.
Ok just confusing  I would have thought rise should be before set in order of display on the page is all not that the times were wrong.
Title: Re: Moonrise/Moonset
Post by: Jáchym on January 18, 2017, 01:42:10 PM
I know what you mean, but for me for example it seems more logical for this to be in chronological order.
Title: Re: Moonrise/Moonset
Post by: n7xrd on January 18, 2017, 01:44:51 PM
Ah ok I see on Ken's main page his is listed moonrise first then moonset.
Title: Re: Moonrise/Moonset
Post by: SLOweather on January 18, 2017, 04:35:38 PM
To make it more confusing, there are days with moon rise times but no set time and vice versa.
.
Title: Re: Moonrise/Moonset
Post by: mcrossley on January 18, 2017, 05:36:58 PM
If you are far enough North (or South) then it can be down or up for many days at a time. All to do with the 5 degree tilt of the Moon's orbit.
Title: Re: Moonrise/Moonset
Post by: saratogaWX on January 18, 2017, 07:09:16 PM
Sometimes, them moonrise is on the prior day, so the moonset for today is early today while the moonrise is later today.

I'd not put code in the ajax-dashboard to detect that and display moon set, then moon rise.. just lazy, I guess.  Also Mark is correct. For some high latitudes ('midnight sun' areas), the moon can have weird times for rise/set (or have those times missing entirely if the moon is/is not visible the entire day).
Title: Re: Moonrise/Moonset
Post by: n7xrd on January 18, 2017, 07:39:53 PM
 :grin: This sounds complicated!
Title: Re: Moonrise/Moonset
Post by: Jáchym on January 18, 2017, 07:42:46 PM
This might help, here is an example for my city (49.2 N, 16.1 E)

https://www.timeanddate.com/moon/czech-republic/brno