Creating a bespoke landscape for Stellarium

I use Stellarium on several PCs and laptops to help me plan what I’m going to attempt to observe and for finding objects in the sky when I can’t find them from other pictures or star maps. It’s a great program and I heartily recommend it. It allows the user to select a number of landscapes to render the stars against and, if you can work out how, it also lets you create your own. I found a few sets of instructions on how to do so using Windows, but I’m a UNIX/Linux person so needed a way that would work for me (though as I’m just using hugin and the gimp, this may well work on Windows, too). Here’s what I did.

First take a sequence of shots with a camera from the viewpoint you’ll be using to create a panorama. Ideally choose a day on which the sky is a uniform colour because we’ll want to get rid of it later. If the sky is the same colour as anything else in the image then things will get a bit more awkward later. You need a full 360° with plenty of overlap in each shot — a third is good. I started with north at one edge of the first photograph, because I know exactly which direction that is, but it’s not a major problem wherever you start. Try to keep the horizon in roughly the same place in each photo; it probably helps with lining things up later to keep it in the middle of the shot. You don’t need a particularly good camera. I used an Ixus 40 in manual mode so I could force the same exposure settings for each photograph, although I suspect that it may help to leave auto white balance on. I also took the images in a portrait orientation rather than landscape because I wanted as much of the ground in the shot as possible. My pictures were taken without a tripod or other rest. I suspect it may help to use one, but quite a few things can be fixed later on. I usually have my scope in a field, so I took an extra shot of the grass to use to fill in any missing ground, but if you’re in a garden or on a patio, a few shots from around your feet might be useful just to fill in any gaps later on. This gave me 17 panorama shots of around 2200×1700 pixels to work with. We’ll need them smaller later on, but for the moment transfer them to the PC and keep them in the original format and resolution because the software will be pulling useful information out of them.

The next stage was to stitch all of the photographs together into a panorama. For this I used the “hugin” panorama creator which is available as a package for Ubuntu (my current desktop OS of choice). I loaded the panorama images in from the “Assistant” tab and then skipped straight to the “Control Points” tab which is where you run through the photographs creating control points (no surprises there) that allow hugin to join all the photographs together. If you’re not that familiar with hugin that’s no problem. Neither am I. And despite that it even managed to get the images the correct way up. Select the first image from the drop-down on the left and the second image from the one on the right and pick out a few points (I try to get five as far apart as possible) that appear in both images. Make sure the “auto fine tune” and “auto estimate” options are selected at the bottom right of the window. Click on the first in one image and adjust the position of the cross to get it on an exact spot you can identify, then click on the second image and move the cross to exactly the same place. If you get the cross in roughly the right place, hugin can often locate the exact position for you. Once you’re happy, click “Add” and move on to the next point. After the first point is in place, hugin will usually suggest where it thinks subsequent ones will be, which makes life far easier. When you’re happy with these two images, click on the right arrow between the two drop-downs of image names to move on to the next photograph in the set and repeat the process until they’re all done. Do create control points to link the last image back to the first one.

Once you’ve selected all your control points, move to the “Optimiser” tab and click “Optimise Now!”. At this point you can see roughly what you’ve got by clicking on the “Fast Preview Panorama” icon. If you find the horizon is very wavy then you can go to the “Move/Drag” tab in the preview and use the “Straighten” icon to try to sort that out. You can also display the control points and see how well they fit to see if perhaps adding more would help.

Next choose the “Exposure” tab, chose the “Low Dynamic Range” preset and click “Optimise Now!” on this page, accepting the default number of points per image. This may take a few seconds to run depending on the number of images. Apply the results.

Finally for hugin, go to the “Stitcher” tab, chose an equirectangular projection and click the “Calculate Field Of View” and “Calculate Optimal Size” buttons, and then “Stitch Now!” and choose a filename for the panorama image. This may take a few minutes to create.

Once the image has been created, load it into gimp. We want the final image to be 2048×1024 (Stellarium apparently requires the image dimensions to be a power of two, in a width:height ratio of 2:1 and as the supplied Mars landscape is 2048×1024 I took my lead from that), so the first thing to do is to scale the current image to be 2048 pixels wide. We’ll deal with the height in a moment. Use the Image->Scale Image menu to set the horizontal size to 2048 pixels and leave the sizes linked so the image is scaled vertically to match.

Now select Image->Canvas Size, break the link between width and height leaving width at 2048 and set the height to 1024. Also click on “Centre” and select “Resize All Layers”, followed by “Resize”. You should now have an image with the horizon centred somewhere around 500 pixels high. If it’s way out then it may be necessary to move it by selecting most of the image, cutting it and pasting it back in appropriately.

Next use the “select area by colour” tool to select an area of the sky, and cut it from the image using “ctrl-X”. Do this until you’ve got rid of as much sky as you want. If you find your sky colour is the same as parts of the image then you may need to tweak their colour a little, or use an alternative method for selecting the areas you want to remove such as selecting areas freehand. The “select by colour” method does make it really simple to remove sky visible through other objects such as trees though.

Finally, you’ll probably find you have a gap where your panorama doesn’t come down to the bottom of the image. I used my grass shots, resized by the same factor as the panorama and pasted them into this image, but you might be able to use the clone tool or paste in a whole sequence of images to fill that area.

Once you’re done, save the image as a PNG. Create a new directory called $HOME/.stellarium/landscapes/my_landscape and copy the PNG file to it. In that directory you also need to create a file called landscape.ini similar to this:

[landscape]
name = My Landscape Name
author = My Name
description = My description
type = spherical
maptex = landscape.png
angle_rotatez = 90

[location]
planet = Earth
latitude = +00d00'00"
longitude = -00d00'00"W
altitude = 125

Choose the altitude that’s correct for you, and obviously set the correct name for your landscape file in the maptex field. Now you should be able to start stellarium up and find your landscape listed with the others. Select it and save your settings. You’ll probably find first time around that your panorama isn’t aligned correctly with the compass. You can change the angle_rotatez setting from 0 to 359 to shift the image around to the right place. The latitude and longitude don’t need to be correct unless you want to use the “use associated planet and position” under the landscape tab when you load the new landscape into Stellarium.

Posted in Astronomy | Leave a comment

Lunar 100 map with blue markers

I discovered a couple of nights ago that with my new red torch it wasn’t actually possible to read the red markers on my Lunar 100 map. So, I’ve made a new version with the markers in dark blue, which I can read with the red torch. It’s not the best solution in the world as I’ve had to mangle the original PDF, but I think it will work for me.

In the event that anyone else would like to use it, here it is.

Posted in Astronomy | Tagged | Leave a comment

Observation report 15/2/2011

After almost a full day of pouring rain, the skies cleared in the late evening and the seeing was excellent. The moon was bright enough to cast crisp shadows and to illuminate the smoke from one of our chimneys as it rose straight upwards.

Given the brightness of the moon there seemed little point spending time attempting to view anything else so I decided to attempt a few features on the Lunar 100 list. First up was the Copernicus crater, easily found but perhaps would have been better a couple of days early when the illumination was more oblique. It wasn’t as bad as some of the features towards the eastern limb though, where most detail was lost in the brightness. A short hop north-west took me to another crater, Aristarchus, and then back over to the east to see the impact rays across Mare Crisium from Proclus.

At 50x magnification the fractured floor of the Gassendi crater was just about visible, but needed observing for some time for the details to resolve. Sinus Iriuum with its missing south-eastern rim was easy to see.

I spent some time trying to find the straight wall running south from about 18°S 8°W, but couldn’t see it at all, again probably due to the angle of lighting and whilst I could see the Petavius crater, it’s floor features weren’t visible to me for the same reason.

I upped the magnification to around 80x and was rewarded with a fantastic view of Schroter’s Valley and of the different surface textures in Mare Serenitatis after which I went looking for the Alpine Valley leading up to Mare Frigoris. It took some time to pick that out and then once I’d seen it I couldn’t believe it had been so difficult to find. It’s described as a “graben”; I had to look up what that means. The best description I can come up with is something like a rift valley.

Posidonius and Fracastorius were very clear as was the Aristarchus Plateau, but after some searching I was unable to identify Pico to my satisfaction. It also took me some time to find the Hyginus Rille before I realised I’d been staring right at it for several minutes.

With time getting on I decided I couldn’t stay out much longer, so finished by finding the Archimedes crater and the oblique impact features at Messier, Messier A and Schiller. Just on the bright side of the terminator and still partially in shadow, Schiller stood out strongly, looking very impressive.

By this time Saturn was about 25° above the horizon and I couldn’t really call it a night without a quick viewing. It was time well-spent as the image was far sharper than a few nights previously. I tried pushing the magnification up to 250x using a barlow, but couldn’t achieve focus. It’s probably asking too much of the ST102 anyhow and the barlow is only the cheap and nasty one that was supplied with my ST80, so I wasn’t expecting much. I do have a much better one arriving shortly, so I’ll try again at around 170x next time the seeing is good.

Posted in Astronomy | Tagged , , | Leave a comment

Focus motor drive for Startravel 80 & 102 Review

One of the problems with the ST80 and ST102 on the EQ1 mount is the amount of “wobble” when changing focus, which not only takes a while to settle down afterwards, but makes it more difficult than it need to be actually determine when the scope is in focus in the first place. I put up with the problem for a while, but when someone mentioned in passing that Skywatcher have a motorised focus drive, I thought I’d give it a try. I bought mine from First Light Optics, but they’re available from many different suppliers, often misleadingly called an “autofocuser”.

The drive arrived as a kit of parts, some of which weren’t necessary for my scope(s), including the motor, controller, battery, cable, two mounting brackets, four screws for retaining the mounting plate, two knurled and slotted screws for attaching the motor to the mounting plate, a plastic “universal joint” type drive connector, an Allen key, a length of self-adhesive velcro and a metal connector which appears to have an O-ring in the open end that was already fitted to the motor output shaft. This clearly wasn’t intended to fit anything I was going to use it for, so I had to remove it (with some difficulty — it was quite stiff even after I’d removed the retaining grub screw completely). Oh, and an A4 sheet of instructions which, whilst OK, weren’t brilliant. I assume the larger mounting bracket is for some of the other scopes that the kit fits and I didn’t use the four retaining screws because the existing ones held the mounting bracket I used without any problems.

The first job is to remove one of the focusing wheels, by removing the screw in the centre and then just easing it off. I’ve fitted this kit to both my ST80 and ST102 and whilst the ST80 wheel came off easily, the ST102 was very stiff and needed a certain amount of carefully levering to remove it:

With the wheel removed the two screws nearest that end of the focusing shaft can be removed from the plate covering the pinion wheel and the motor drive mounting bracket refitted with the same screws. I did them up just tight enough to hold the bracket in place without slopping around so I’d be able to move it into the correct position to fit the motor drive:

I fitted the plastic connector onto the motor next. The shaft has a flat on it for the grub screw to bear on so orientation matters whereas the focusing shaft doesn’t and the other end of the connector will go on in any orientation. However, it’s worth aligning the connector before putting it over the focusing shaft to allow easy access to the two grub screws for tightening them onto the shaft:

With the motor connected I connected the motor housing to the mounting bracket and tightened up the screws on the bracket itself. Before connecting everything up the battery needs to be fitted into the controller. I found there to be almost no free space around the battery for the connector cables and couldn’t get the battery compartment cover closed with the battery in place, so ended up undoing the four screws on the back of the controller to allow the cover to be put in place, then screwed them back down:


Finally, connect up the cable — either way around seems fine — and test it.

I was concerned that I’d find using the controller to focus the scope rather than the focus knob a nuisance, but actually as long as I keep the controller somewhere it’s easy to find without taking my eye from the eyepiece when I need to, it’s fine, and the entire process of focusing is far easier because the image stays beautifully steady. Learning which button moves the focus in which direction and which way you need to turn the speed controller to make the movement faster or slower takes a while to get the hang of, but it’s no different from getting used to the slow motion controls or the clutch locks on the RA/dec axes. It also helps if the cable is fixed to the scope body somewhere to stop its weight dragging the focuser end of the scope down when the clutch locks are released.

I found one additional problem with the ST80. Without the motor drive the scope would only balance in the rings if it was as far forward as possible, with the screws attaching the scope tube to the focuser housing tight up against the rear scope ring. With the motor fitted the scope wouldn’t quite balance without additional weight at the front of the tube.

All in all I’m very happy with the improvement the motor drive has made. A more rigid mount would also solve the problem, I’m sure, but this is a very acceptable alternative until I can justify spending that kind of money

Posted in Astronomy | Tagged , | Leave a comment

Cider Apple Pressing 2010

Behind our house are a small number of cider apple trees around twenty-five years old. Three of these I have identified as Yarlington Mill, two are Dabinett, four are, I’m fairly sure, Somerset, and the remaining three I have not been able to identify, though they’re definitely Jersey-type apples. Yarlington Mill and Dabinett are pretty good cider varieties. The Somerset trees are prolific, but don’t produce particularly good quality juice.

The last couple of years there haven’t really been enough apples to be worth pressing, but this year I managed to collect around 40 sacks full. Pretty much all of these (which I estimate to be in the region of 700 to 800kg in weight) came from the Yarlington Mill and other Jersey type trees. At the start of November I got to work pressing them using my Vigo crusher and home-built bottle jack-driven press.

By the end of November I’d pressed around 600kg of apples to produce in the region of 300 litres of juice which I’ve split between two 220 litre barrels in the workshop. I also added a couple of dozen litres of juice from some Bramley apples to try to raise the acidity a little as all the others are bittersweets. To kick off the fermentation I also added some cider yeast. Unfortunately the remaining apples froze solid (the temperature did get down to -10C at some points) and by the time it was possible to press them they were little more than mush.

Due to the very cold weather throughout December (the coldest in 100 years, I’m sure it was announced on the news) the fermentation has been exceptionally slow. I’m hoping it will pick up again as the weather starts to warm up as we reach the end of winter.

Posted in Cider-making, Smallholding | 2 Comments

UK light pollution map

Someone pointed me at an excellent interactive UK light pollution map the other day, apparently done as an overlay on Google Earth. It’s quite shocking to think that all those bright areas represent wasted fuel, wasted energy and, especially in the current economic climate, wasted money.

I am lucky in that having spent a good fifteen years living in several of the red areas of the map I now live in one that doesn’t even show up on the map, although there appears to be someone a mile or so across the valley who’s doing his level best to change that.

Posted in Astronomy, Environment | Leave a comment

Observation Report 13/2/2011

Around 11pm the sky eventually cleared after a day of heavy cloud and rain to show a sky mostly washed out by the moon. This was my first chance to try out my new (to me) Startravel 102 though, so I wasn’t going to let the lack of things to look at put me off.

Given the brightness of the moon it seemed sensible to start there, so I spent a good hour or so finding the Apennines, Tycho, Clavius, Proclus and Mare Serenitatis. I tried to find a few other features towards the eastern limb, but being lit from overhead I wasn’t really able to get a good view. They will have to wait for another time. Those features near the terminator were stunning though, even at only 20x magnification. I did try 50x magnification, which made it tricky to identify whereabouts on the moon I was and it was tricky to get anything meaningful in focus beyond that.

On the point of packing up I noticed Saturn had crept around the corner of the house, though it was still fairly low on the horizon. Starting at 20x and working my way up to 125x magnification I ended up with a beautiful view of the planet and rings, closely accompanied by Titan. I look forward to seeing it higher in the sky over the next few months.

Posted in Astronomy | Tagged , , | Leave a comment

Observation Report 7/2/2011

Another night with fairly poor seeing and some cloud, but I wanted to catch up on some of the things I’d missed a few days earlier.

Again I had to give up on M77 and M79, but this time I found M31 fairly easily in the scope and spent some time observing it. Yet another thing I’m amazed I’ve never picked out with the naked eye.

Given the poor seeing and the barely lit moon I spent some time familiarising myself with it, but could really only pick out Mare Crisium. The lunar surface was dancing about all in the scope making it very difficult to view anything in detail, so at that point I decided to call it a night.

Posted in Astronomy | Tagged | Leave a comment

Observation Report 2/2/2011

Not the clearest of skies this evening, with some bubbles of cloud drifting across the sky, but you have to take what opportunities you’re given.

I thought I’d do a bit more Messier Object hunting this evening. First on my list of targets were M77 and M79, but I think they’d got too low in the sky to pick out with either binoculars or scope, so after half an hour’s fruitless searching I moved on.

M78 took some finding, but I eventually got there by using Stellarium and star-hopping. I’ve looked for it previously without success. Now I’m a little more used to what to look for it was easier, but still quite hard to find in the scope.

Following that I stayed in the Canis Major/Monoceros/Cancer area and found M50, M35, M46, M47, M93, M44, M67 and M48 in relatively quick succession. I was surprised to discover how bright and easy to find M44 (the Beehive cluster) was. It’s hard to believe I’ve never picked it up with the naked eye.

Moving around to the East and North I then completely failed to find any of M65, M66, M95, M96, M105, M81, M82 or M51. Possibly that’s just because they’re not particularly bright and the seeing was far from good.

Not wanting to end on a disappointment I had a scan across the western horizon with the binoculars in time to see M31 just before it disappeared into the murk. There wasn’t time to find it in the scope, so that’ll be something I save for another day.

Posted in Astronomy | Tagged | Leave a comment

The Tree House Project

(Apologies in advance if you’re confused by the feet-and-inches measurements. I was brought up with metric at school and imperial at home and tend to use whichever comes to mind first. 6′ is near enough 1.8m and 8′ is 2.4m)

For Christmas my wife suggested that I build a tree house for the children. I didn’t have one when I was a child and I thought it was something they’d get enjoyment out of for many years, so it seemed like a great idea.

We have a number of fairly mature trees, but unfortunately the ones where I wanted to put the house are all in a line, so I picked trunks I could use to support one end and concreted a 6″ square post about three feet into the ground outside the line of the trees. With the post firmly in place I drilled holes through the trunks and post and fixed 8″x2″ timbers between them at a height of around seven feet using 22mm threaded steel rod. The timbers actually form a “kite” shape with the “bottom” of the kite supported by the post and the three other corners fixed to tree trunks.

The 8″x2″ timbers formed a frame on top of which I built the platform for the house from 6″x2″ timbers forming a rectangle approximately 11’x8′. This isn’t fixed rigidly to the supporting timbers, just tied down with rope. It means that as the tree flexes there’s no load on the house and platform so there’s no risk of it being pulled apart.

I planned to have the 8’x6′ “house” in the trees aligned with one corner and a platform around the other two sides with a ladder up to it. The area occupied by the house I floored with standard flooring chipboard and then “stick-built” the walls and roof from 3″x2″, incorporating spaces for windows (double-glazed, no less) scavenged from the remains of the ones we’d replaced in our house. The remainder of the platform I covered with grooved decking leaving a gap around one trunk I thought would be fun to leave growing up through the decking.

The outside of the house is covered with ship-lap and at the moment the roof is a couple of sheets of light-weight construction ply. Because I constructed the house in the late autumn and early winter it was hard to tell how dark it would be when the trees were in full leaf. I think I’ll probably end up replacing at least some of the roof with clear plastic sheeting to let in more light.

At this point it occurred to me that we had a spare slide body stashed away somewhere, so I dug that out and found that it wasn’t really tall enough to reach the main platform so I decided to build a second lower platform with steps up to the main one. This holds the top of the slide and has a trap door reached via the ladder.

The last stage of construction was to add rails to both platforms with boarding or fencing to stop over-inquisitive children falling out, and a gate at the top of the steps between the platforms.

My son was desperate to have a pulley to lift things up to the house, so an old television aerial mast, some bits of steel bracketing and a pulley from a dead ride-on mower deck were pressed into service and do a fine job.
The house has survived some high winds unscathed and gets played in regularly, so I’m very pleased with it. In fact, sometimes I’m almost tempted to take the laptop out there and work…

Finally, a couple more photos. If there’s interest in additional details of the construction I’ll be happy to take some more.

Posted in Projects | Leave a comment