Page 2 of 2
Re: Moon Image ??
Posted: Mon 11 Jun 2012 3:38 pm
by RayProudfoot
steve wrote:Here's another link, one you might consider "more authoritative". According to the web site of the US Naval Observatory (my emphasis): "The percent of the Moon's surface illuminated is a more refined, quantitative description of the Moon's appearance than is the phase. Considering the Moon as a circular disk, the ratio of the area illuminated by direct sunlight to its total area is the fraction of the Moon's surface illuminated; multiplied by 100, it is the percent illuminated. At New Moon the percent illuminated is 0; at First and Last Quarters it is 50%; and at Full Moon it is 100%. During the crescent phases the percent illuminated is between 0 and 50% and during gibbous phases it is between 50% and 100%."
If you'd like to give me a definitive reference for the mapping of percentage visibility to lunar phase, I can consider changing Cumulus at some point.
Steve, I completely agree with that source. Reading it, it also say's this... "The two crescent and two gibbous phases are intermediate phases, each of which lasts for about a week between the primary phases, during which time the exact fraction of the Moon's disk that is illuminated gradually changes."
What I do find difficult to get my head around is that 49% of the moon illuminated represents a crescent rather than still a quarter. If you accept that a full moon can still look full one day either side of it being full there's a reasonable case to be made for + and - 1 day either side of first / last quarter.
It's open to interpretation and not a huge issue for me nor you I suspect. I'm currently trialling the alternative from the site I mentioned earlier so people can compare the phases should anyone want to do it.
Re: Moon Image ??
Posted: Mon 11 Jun 2012 8:20 pm
by RayProudfoot
This is a useful demonstration.
http://astro.unl.edu/naap/lps/animations/lps.swf
New Moon is 1.1% or less of the surface illuminated.
Waxing / Waning Crescent is between 1.2% and 45.6% illuminated.
First / Last Quarter is between 45.7% and 54.4% illuminated.
Waxing / Waning Gibbous is between 54.5% and 98.8% illuminated.
Full is 98.9% or more illuminated.
So first / last quarter will be visible for less than gibbous phases but perhaps for 2 days compared to the current 1.
Re: Moon Image ??
Posted: Tue 12 Jun 2012 2:06 am
by GraemeT
....it's all gotten too academic for me....
Mapantz,
I can't claim any credit at all for the images...they're someone else's and sadly, I can't remember where they came from.
If I could, I'd post more details.
Re: Moon Image ??
Posted: Fri 15 Jun 2012 11:08 pm
by GraemeT
Oops!
Previous post incorrect - now fixed...
The source of the moon images is actually here:
https://cumulus.hosiene.co.uk/viewtopic.php?f=18&t=352
Scroll down to the final post for the d/l. link.
Re: Moon Image ??
Posted: Sat 23 Jun 2012 12:33 am
by GraemeT
I've reworked my moonphase code and (hopefully) we can now show a different image for each day of the moon-cycle.
Here are the images, as well as a bit of php code to display them.
http://weather.gktnet.com/public/weathe ... hases2.zip
Cheers.
Re: Moon Image ??
Posted: Sat 23 Jun 2012 3:50 pm
by Mapantz
Hi Graeme, I'd like to use the new way on my site, but i'm not clued up on what to do with php, so i wondered if you could guide me through it?
Regards.
PS: Good work!
Re: Moon Image ??
Posted: Sun 24 Jun 2012 12:24 am
by GraemeT
Hi Mapantz,
If you're not using php, it can be done in javascript.
My javascript is very rudimentary, but this should work for you:
Code: Select all
<script type="text/javascript">
var Lat="<#latitude>";
var hemi=Lat.substr(0,1);
var imagen = "<#MoonAge>";
if (hemi=="S") imagen = (-imagen)+29;
document.write('<img src="/images/moon2/'+imagen+'.png"/>');
</script>
View here:
http://weather.gktnet.com/cumulus/index.htm
I've updated
http://weather.gktnet.com/public/weathe ... hases2.zip to include this code.
Re: Moon Image ??
Posted: Sun 24 Jun 2012 3:06 pm
by Mapantz
Excellent! Thank you Graeme.
Re: Moon Image ??
Posted: Sun 24 Jun 2012 3:11 pm
by Paul-G0HWC
Got it working here too
Good work Graeme
Paul
Re: Moon Image ??
Posted: Sun 24 Jun 2012 3:30 pm
by Paul-G0HWC
I think its funny the time we spend doing tweaks to our weather pages
that 99% of visitirs will never notice ! But all part of the fun
Paul
Re: Moon Image ??
Posted: Sun 24 Jun 2012 3:52 pm
by Mapantz
Paul-G0HWC wrote:I think its funny the time we spend doing tweaks to our weather pages
that 99% of visitirs will never notice ! But all part of the fun
Paul
haha - yeah i'm always tweaking. As long as i'm happy with it, then i know most of the visitors will be.
Re: Moon Image ??
Posted: Sun 20 Jan 2013 2:35 pm
by Phlerb
Thanks for doing this. I really like these moon images.
The only thing I would mention in the text file is that the path of the imagefile may need to be changed to the include the subfolder that Cumulus is running under. I spent about an hour trying to determine why the image did not show.
I have my site running under .../Weather/index.htm, so I had to add /Weather to the code
document.write('<img src="Weather/images/moon2/'+imagen+'.png" alt="No Image" title="Moon is
Re: Moon Image ??
Posted: Thu 25 Jan 2018 3:34 pm
by gcaboz
How can i acess at this ?
http://weather.gktnet.com/public/weathe ... Phases.zip
Beacause it asks for a login name and password