Extending the Stellarium virtual planetarium

Own Galaxies

Not only can you gaze at stars using Stellarium, but whole galaxies, too. To do so, you need to integrate high-resolution telescope images, which you can find in the /usr/share/stellarium/nebulae/default directory. However, version 0.13 is only familiar with the default subdirectory, so you must make a copy of the high-res images in the new directory, ~/.stellarium/nebulae/default.

Online, you can find an updated compilation [8] to save in the new directory. The error messages in the logfile or in the terminal when launching the software point out that the software isn't able to assign some names correctly, with mismatches in some cases and missing files or file name extensions in others. At the time of publication, I still hadn't received an answer to my query as to whether some of the images might be protected by copyright.

Stellarium is already familiar with all large galaxies; however, it is missing those that only appear intermittently because of their distance from Earth. One example is the object SDSS J162746.44-005357.5. This object shows two galaxies that lie exactly on an axis with the earth but are several billion light years away from each other. This arrangement causes the front galaxy to bend the light of the back galaxy, in line with the general theory of relativity, forming an Einstein ring [9] (Figure 5). The front galaxy appears as a point, the rear one as a ring – here with a diameter of two arcseconds. For comparison, terrestrial telescopes cannot capture less than one arcsecond because of fluctuations in the atmosphere; however, the Hubble Space Telescope manages 0.05". Stellarium is already familiar with the object of interest. If you enter SDSS J162746.44-005357.5 into the search window, the program will guide you to the right place, although nothing is there yet to be seen. Stellarium doesn't do the search itself; instead, it asks the SIMBAD database [10].

Figure 5: Hubble image of Einstein ring SDSS J162746.44-005357.5. Image: NASA, ESA, A. Bolton (Harvard-Smithsonian CfA) and the SLACS Team.

Therefore, you have to place the image of the Einstein ring into the correct position and at the correct size in the Stellarium night sky. The basic procedure is the same as for the constellations; the "Fitting the Einstein Ring" box lists the specific steps. The main work this time involves determining the coordinates. A rough estimate is enough to demonstrate the principle: The diameter of the Einstein ring is two arcseconds. Figure 5 therefore approximately covers an extension of six arcseconds. According to SIMBAD, the coordinates of the Einstein ring are 16hr 27min 46.447sec right ascension, -00°53'57.56" declination.

Fitting the Einstein Ring

To begin, create the ~/.stellarium/nebulae/default subdirectory and copy the image of the Einstein ring there. Next, adjust the ~/.stellarium/nebulae/default/textures.json file by expanding the JSON list to include:

{"imageCredits": {"short" : \
 "Einstein ring SDSS J162746.44-005357.5; Source NASA/ESA http://hubblesite.org/gallery/album/ exotic/pr2005032g/"}, \
 "imageUrl" : "EinsteinSDSSJ162746.png", \
 "worldCoords" : [[[-113.0556,-0.9001],[-113.0572,-0.9001], [-113.0572,-0.8985],[-113.0556,-0.8985]]] , \
 "textureCoords" : [[[0,0], [1,0], [1,1], [0,1]]], "minResolution" : 0.28,  "maxBrightness" : 16.0}

After restarting, you'll find the image in the sky.

After converting the coordinate values to decimal degrees [11], the vertices of the image are the coordinates in the worldCoords line (in the boxout). The imageUrl line lists the name of the image file and maxBrightness the brightness. The value mag 17 would be correct. I chose mag 16. Stellarium suppresses objects with a magnitude smaller than 16 (higher numbers represent smaller magnitudes).

The data in the textures.json text file are in JSON format. Syntax errors such as comma or bracket mistakes will prevent all the images from being integrated, resulting in an error message in the terminal:

WARNING: Can't parse JSON description: "/home/rp/.stellarium/nebulae/default/textures.json"

You can check position and size of the added object by loading the Angle Measure plugin at startup (Configuration window | Plugins). After a restart, the tool will appear as an angle symbol in the bottom menubar. The diameter of the ring should be two arcseconds (Figure 6), if you have estimated the edge coordinates correctly. Figure 7 shows guide stars that can help find the tiny object.

Figure 7: Use the guide stars to find the Einstein ring.
Figure 6: If everything worked, you'll be able to find the Einstein ring as an image in the sky with the correct diameter.

Conclusions

Normal galaxies stretch out over many arcminutes. In the Einstein ring example, Stellarium illustrates the persistence required to find tiny structures in the sky like Einstein rings with a diameter of only a few arcseconds. Presumably, only very few users manage to come across the object by chance.

All told, it is pleasingly easy to familiarize yourself with the stars using Stellarium. By making a few small modifications, you can quickly adapt the software to include new environments and objects.

Infos

  1. "Explore the Night Sky with Stellarium" by Karl Sarnow, Ubuntu User, issue 16, 2013, http://www.ubuntu-user.com/Magazine/Archive/2013/16/Explore-the-night-sky-with-Stellarium
  2. Stellarium at Launchpad: https://launchpad.net/~stellarium/+archive/ubuntu/stellarium-releases
  3. Small tortoiseshell (butterfly) by Zeynel Cebeci: https://commons.wikimedia.org/wiki/File:Aglais_urticae_-_Small_tortoiseshell_02.jpg
  4. GNU Free Documentation License, version 1.2: https://commons.wikimedia.org/wiki/Commons:GNU_Free_Documentation_License,_version_1.2
  5. Attribution-ShareAlike 4.0 International: https://creativecommons.org/licenses/by-sa/4.0/deed.en
  6. 360° Panorama over the small Spitzkoppe, the Spitzkoppe, and the Erongogebirge, Namibia, by Ikiwaner: https://commons.wikimedia.org/wiki/File:Spitzkoppe_360_Panorama.jpg
  7. Code and images: ftp://ftp.linux-magazine.com/pub/listings/magazine/186
  8. File with updated galaxies: http://barry.sarcasmogerdes.com/stellarium/uploads/stellariumnebula-1.ZIP
  9. Einstein ring: http://hubblesite.org/newscenter/archive/releases/2005/32/image/g/
  10. SIMBAD Astronomical Database: http://simbad.u-strasbg.fr
  11. Conversion of right ascension and declination in degrees: https://www.swift.psu.edu/secure/toop/convert.htm

The Author

Dr. Roland Pleger is a physicist and Wikipedia author. He believes that open source and open content prepares the way for a better world.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Stellarium

    If you like astronomy but you don’t like sitting outside on cold nights, try stargazing from a virtual planetarium.

  • FOSSPicks

    Graham Morrison looks at VCV Rack, Audible Instruments, TripleA, Neofetch 3.3.0, TripleA, Eolie 0.9, and more!

  • FOSSPicks

    This month Graham reviews Tuning Workbench Synth, Stellarium 1.0, sake, Wonder Shaper, and Samplebrain.

  • Google Open Sources Liquid Galaxy

    The cluster of computers that create 360-degree live panoramas is now open.

  • Gifts for Gamers: Some End-of-Year Recommendations, Part 1

    Christmas is a time for rest and contemplation. To intersperse the period with some distraction on long winter evenings, a number of Linux games can prove some diversion, as this article will show.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News