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].

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.

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
- "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
- Stellarium at Launchpad: https://launchpad.net/~stellarium/+archive/ubuntu/stellarium-releases
- Small tortoiseshell (butterfly) by Zeynel Cebeci: https://commons.wikimedia.org/wiki/File:Aglais_urticae_-_Small_tortoiseshell_02.jpg
- GNU Free Documentation License, version 1.2: https://commons.wikimedia.org/wiki/Commons:GNU_Free_Documentation_License,_version_1.2
- Attribution-ShareAlike 4.0 International: https://creativecommons.org/licenses/by-sa/4.0/deed.en
- 360° Panorama over the small Spitzkoppe, the Spitzkoppe, and the Erongogebirge, Namibia, by Ikiwaner: https://commons.wikimedia.org/wiki/File:Spitzkoppe_360_Panorama.jpg
- Code and images: ftp://ftp.linux-magazine.com/pub/listings/magazine/186
- File with updated galaxies: http://barry.sarcasmogerdes.com/stellarium/uploads/stellariumnebula-1.ZIP
- Einstein ring: http://hubblesite.org/newscenter/archive/releases/2005/32/image/g/
- SIMBAD Astronomical Database: http://simbad.u-strasbg.fr
- Conversion of right ascension and declination in degrees: https://www.swift.psu.edu/secure/toop/convert.htm
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Direct Download
Read full article as PDF:
Price $2.95
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Find SysAdmin Jobs
News
-
MNT Seeks Financial Backing for New Seven-Inch Linux Laptop
MNT Pocket Reform is a tiny laptop that is modular, upgradable, recyclable, reusable, and ships with Debian Linux.
-
Ubuntu Flatpak Remix Adds Flatpak Support Preinstalled
If you're looking for a version of Ubuntu that includes Flatpak support out of the box, there's one clear option.
-
Gnome 44 Release Candidate Now Available
The Gnome 44 release candidate has officially arrived and adds a few changes into the mix.
-
Flathub Vying to Become the Standard Linux App Store
If the Flathub team has any say in the matter, their product will become the default tool for installing Linux apps in 2023.
-
Debian 12 to Ship with KDE Plasma 5.27
The Debian development team has shifted to the latest version of KDE for their testing branch.
-
Planet Computers Launches ARM-based Linux Desktop PCs
The firm that originally released a line of mobile keyboards has taken a different direction and has developed a new line of out-of-the-box mini Linux desktop computers.
-
Ubuntu No Longer Shipping with Flatpak
In a move that probably won’t come as a shock to many, Ubuntu and all of its official spins will no longer ship with Flatpak installed.
-
openSUSE Leap 15.5 Beta Now Available
The final version of the Leap 15 series of openSUSE is available for beta testing and offers only new software versions.
-
Linux Kernel 6.2 Released with New Hardware Support
Find out what's new in the most recent release from Linus Torvalds and the Linux kernel team.
-
Kubuntu Focus Team Releases New Mini Desktop
The team behind Kubuntu Focus has released a new NX GEN 2 mini desktop PC powered by Linux.