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
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.
News
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.