Make Stellarium panoramas from Google Earth

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!) 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. Call each scene to display, save still image with the same name, as JPG.
  6. Use Hugin to combine the images. After selecting all images to load, 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.
  7. 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.
  8. 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

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