Monday, January 14, 2008

Making images and animations of model output in google earth

I have been working on creating images and animations from google earth. I started out [here](http://www.barnabu.co.uk/animations/) for inspiration. Here are some samples of an [image](http://pong.tamu.edu/~rob/files/bsh.kmz) and an [animation](http://pong.tamu.edu/~rob/files/bsh_anim.kmz). The code is actually quite simple:

the basic unit is the [KML GroundOverlay](http://code.google.com/apis/kml/documentation/kml_tags_21.html#groundoverlay):


__NAME__
__COLOR__
__VISIBILITY__

overlay.png


__SOUTH__
__NORTH__
__WEST__
__EAST__



Just put this file in with an image that is linked by Icon (here overlay.png), and you are good to go. Link this with a TimeSpan segment within the GroundOverlay:


__TIMEBEGIN__
__TIMEEND__


and add more GroundOverlays, and you automatically have an animation. Finally, the legend is put in with something like:


Legend

legend.png







Some examples for making [images](http://pong.tamu.edu/~rob/files/geo_pcolor.py) and [animations](http://pong.tamu.edu/~rob/files/geo_anim.py) are linked.

No comments:

Post a Comment