Make Stellarium panoramas from Google Earth

The open-source desktop planetarium Stellarium allows you to simulate the sky above a landscape. For better immersion you can input your own landscape panorama. The Stellarium User Guide explains the process. If you cannot create an on-site panorama photograph, the next best thing is creating an artificial horizon ("landscape" in Stellarium's terminology).

Here is how to:

  1. Startup Google Earth. In the options dialog, set display of coordinates in decimal degrees mode.
  2. Find your spot of interest. Enter the displayed coordinates (enter all displayed digits, but not the degree symbol!) in the form below. In the Alt field, use the ground height displayed plus your eye height above ground, i.e. the value entered must be absolute altitude above sea level. If altitude is below ground, the result will be unusable (collision blocked by GE).
  3. Download the KML file, store it in your <STELLARIUM-USERDATA>\landscapes\<newsite>\pano.kml.
  4. Open in Google Earth. You will find a folder of snapshots. The scenes have names like 75-210, which means nadir distance 75 degrees, azimuth 210 (counted from North).
  5. Prepare "File->Save as... image": switch off title, compass, legend, scale.
  6. Save all scenes as still images with the scene name (80-45.jpg etc.), as JPG. Use FullHD size for the horizon area, the ground can be 1280x720. Pure sky images need not be stored.
  7. Caveat: Google Earth has 60 degrees lateral field of view. Make sure to use 16:9 image layout.
  8. Use Hugin to combine the images. After images import, enter horizontal field of view (FOV) of 60 degrees. Instead of combining with the use of image features, you can directly set the angles from the filenames into the respective fields: pitch=-90+firstNum, yaw=secondNum. Crop away the navigational aids (right/bottom edges). Save the combined image as equirectangular panorama, 4096x2048 pixels.
  9. Use Gimp or Photoshop to mask the blue sky and make it transparent, save as PNG. If your computer is "lightweight" in graphics capabilities, you may want to rescale to 2048x1024.
  10. Write a landscape.ini (double-click the pano group in Google Earth, copy-paste the text to landscape.ini)

Notes

The images displayed are (c) Google, so the created panoramas are for personal use only!

Lat : 
Lon : 
Alt :  m (absolute!!)

I have found a similar script somewhere, but without author note who deserves most credits. Extended in 2013, 2018 & 2022 by Georg.Zotti (at) univie.ac.at