Moon percentage Illumination
Hi Guys,
I'm pulling my hair out here :D
Looking for an algorithm to output percentage illumination of the moon already in C.
There is already Java code out there for the public,
but my lack of understanding of language specific syntax is biting me!
I don't need decimal digits of precision or anything like that..
nothing fancy, just an integer result would be fine.
I HAVE done the work of porting original BASIC code for moon rise
and set times from Sky & Telescope Magazine (from the '70s) to C,
and have that C port working great...
but that's because I was a BASIC programmer too :)
I have also ported some simpler moon phase algorithms that only
provide a basic phase: 0-7, but they can be a segment in error.
I am happy to share the source of my moon times port with anyone
who might want it.. it's just too big to paste in here.
Cheers, Art.