PaulBuxton
Tourist
Reged: 07/25/05
Posts: 16
|
|
My first bit of php code is used to calculate the current position of the sun. I beleive the calculations are accurate....
Paul.
|
ink_polaroid
Sysop
Reged: 01/01/05
Posts: 1868
Loc: SF Bay Area, CA
|
|
Hey, very nice. Your calculations seem to be pretty accurate.
If you want to make them dead-on-balls-accurate (technical phrase), google for VSOP87...
|
bkdelong
Explorer
Reged: 07/29/05
Posts: 99
Loc: Salem, MA, USA
|
|
Anyone think about doing the Moon or other planets? Granted you can't get them into individual globes, but it would b nifty to see where in the sky they are.
Can KML's dynamically change icons? Perhaps in addition to Lunar position, you could have a different icon for each phase.
-------------------- --
B.K. DeLong (K3GRN)
bkdelong@pobox.com
+1.617.797.8471
http://www.wkdelong.org Son.
http://www.haloworldwide.com
Work.
http://www.bostonredcross.org Volunteer.
http://www.brain-stream.com Play.
http://www.the-leaky-cauldron.org Potter.
PGP Fingerprint:
38D4 D4D4 5819 8667 DFD5 A62D AF61 15FF 297D 67FE
FOAF:
http://foaf.brain-stream.org
|
PaulBuxton
Tourist
Reged: 07/25/05
Posts: 16
|
|
I think that anything other than the sun or moon is probably better handled by dedicated astronomy apps. I have considered looking at doing the moon, althought it is a fair bit more complex than the sun (which I suspect I may have simplified a bit).
I haven't tried changing icons dynamically, but as it is simply a tag in the placemark I don't see any reason wjy it can't update dynamically. If anyone can present the required equaitons in a form I can understand (it has been a long time since I did any real maths) I will be willing to give it a crack.
The biggest problem I ran into with doing the sun was that all the pages on the web expected you to be wanting the position relative to where you are rather than it's positoin on the globe, I suspect the moon will be just as painful :-)
Paul.
|
PaulBuxton
Tourist
Reged: 07/25/05
Posts: 16
|
|
Balls on accurate eh? That sounds like it comes from the same tehcnical manual as 'fubar'd and 'totally shaffted'
I wish I had found that library when I started this, the number of pages I found with differing formulas for the equation of time I thought that perhaps noone was sure :-). Although to be fair as that looks to be a C library it would kind of defeat my learning php as I spend all day using C.
Mine might not be perfectly accurate, but it seems good enought to me. :-)
Paul.
|
Tiresias
Tourist
Reged: 08/04/05
Posts: 4
|
|
Hi - love your sun!
nb it goes well with the following day/night overlay:
http://bbs.keyhole.com/ubb/showthreaded.php/Cat/0/Number/40629/page/12
Would it be possible to post a version where the sun icon is not at ground level, but set to a suitable altitude? It looks really cool when i try it with a static version of your icon...
|
barryhunter
Guide
Reged: 07/30/05
Posts: 596
Loc: Wales, Europe
|
|
I agree, it works really well at high altitude! Esp with the overlay mentioned in the last post 
Just a pity that GE hides the placemark when its on the other side of the earth (basically when zoomed out, as soon as it would be on the other side of the earth to what you can see, (but still is visible beucase so far off the ground!) the icon is hidden )
Anyway thanks for posting this! Barry
--------------------
- www.nearby.org.uk - www.geograph.org.uk - www.trigtools.co.uk -
|
PaulBuxton
Tourist
Reged: 07/25/05
Posts: 16
|
|
I will have a look at doing it. Although I am off on holiday tomorrow for a week, so it will not be for while.
This place http://www.die.net/earth/ has a great sunlight/cloud cover map, but the guy seems to be concerned with bandwidth so I have't distributed a kml for it.
Paul.
|
Tiresias
Tourist
Reged: 08/04/05
Posts: 4
|
|
The fact that the curvature of the earth cuts out the view of objects that should in fact be visible because of their altitude also affects the geostationary satellites i have, though they still look great...
(nb: get them here: http://bbs.keyhole.com/ubb/showthreaded.php/Cat/0/Number/60045/an/0/page/11#60045)
Maybe this is something that should be raised for the development guys, however you do that...
|
chocky
Tourist
Reged: 07/13/05
Posts: 19
|
|
Here's a nice little app for your desktop that combines two satellite images to create a dynamic wallpaper showing the areas on Earth where the sun shines.
Earthwatcher
|