A new Linux planetary capture application

Astronomy-wise it’s been a fairly rubbish last month and a half. Here in the back end of beyond it’s been nearly permanently cloudy and there have been periods of several days where there’s been no hint of blue sky. In fact in late September we were inside the clouds for several days.

The potential lack of activity turned my thoughts towards something I’ve been wanting to do for ages, which is to put together some sort of unified hardware interface for (mainly astro-) imaging on Linux. Initially I’d like a single interface for communicating with cameras. For those that are supported by V4L2 that’s great, but unfortunately there are plenty that aren’t. There are some barriers to adding them too, not the least of which is that some vendors only provide closed source interface libraries. But there’s also the problem that V4L2 does’t appear to have functionality for control of cooling, guiding and so on. I’m aware of INDI and it’s a project that should be commended, but it doesn’t solve some problems the way I want them solved. So, I’ve set out to write a generic camera control library from scratch myself.

Writing just the library is a bit tedious though, so to spur me along I’m writing it in tandem with a planetary capture application, all of which will be open source once I have it in acceptable shape.

The library itself will be in C for ease of linking against the kernel and any other languages that it might be useful to use it from. I’ve been meaning to find my way around Qt for some time, so I’m using that for the capture application and therefore C++ for that. It’s entirely possible that much of the code will port to Windows (though pretty much everything already exists there already) and the Mac fairly easily if the V4L2 side is ignored, but my priority is Linux.

A couple of weeks worth of evenings spent keyboard-wrangling has got me to the stage where I have bits of code hanging together well enough to display images from one of my SPC900 webcams using V4L2. I wasn’t expecting that at all. The Philips driver used for the camera has been hideously poorly supported and broken in previous kernels, but on my Mint 15 desktop it seems to work fine. I was thinking I’d probably have to write my own userspace driver, but for the moment at least that doesn’t seem necessary. It does mean that pretty much any V4L2 camera should work with it. It doesn’t mean they’ll necessarily be any good for planetary imaging. My modded Lifecam Studio (which uses the UVC V4L2 driver) seems to work, though it doesn’t have a lens in and I can’t test it on the sky as I’ve not seen a star for weeks, but I do get an unfocused image as I’d expect.

I’ve borrowed some UI ideas from FireCapture because I’m really not good at UI design, thrown in a few bits of my own and here’s the result the first time I ever managed to get an image displayed.

screen

The next goal is to get the ZWO ASI120 mono and colour cameras working (as I have these and can test them). They’re supported using a vendor-supplied closed source library.

And obviously I need to be able to write the data I’m capturing out to disk. FITS files look good, but the overhead of opening many thousands of files doesn’t appeal for planetary imaging. I intend to support such output, but something else is required too. SER may also be useful, but not for colour. In the short term AVI looks like the only choice that is likely to be usable with tools such as Registax and AutoStakkert!2, so I’m going to be playing with FFmpeg I think.

Longer term I would like to support as many of the QHY variants as is feasible (I have a QHY5L-II mono and I’m working on a QHY5), some of the Point Grey cameras (of which I only have the Firefly MV) and the Imaging Source cameras (of which I have none). After that it’s anyone’s guess.

I shall post updates as I make progress.

Posted in Astroimaging, Astronomy, Computing, Linux | Tagged , , | 2 Comments

A 127 Mak Galaxy

I’d tried and failed before, but I had to have another pop at M33. I wasn’t expecting too much as this is the sort of target for which the Mak is very poorly suited. This is 80 minutes of RGB and there’s still barely an image there, though I guess it does just about look like a galaxy. It needs bags more time, but it also needs less focal length or a lot bigger sensor. All in all, I think I favour less focal length…

m33-2013-09-04

Posted in Astroimaging, Astronomy | Tagged , , , , | Leave a comment

A first visit to M71

I wasn’t sure I had this cluster in the field of view initially. It’s quite diffuse compared with the Messier clusters I’ve spent the summer imaging and against a fairly dense star field it wasn’t entirely obvious. It looks lovely though. Definitely one to return to. This is an hour and a half of two-minute RGB subs.

m71-2013-09-04

Posted in Astroimaging, Astronomy | Tagged , , , , | Leave a comment

A stunning globular cluster

I’ve not even got close to doing this justice, and it didn’t help that I lost my guide star after 30 subs or so thanks to the sky becoming hazy. I am going to have to come back and have another bash at this. Even in my poor image it looks absolutely outstanding.

I’ve had a couple of attempts at processing. I’m not sure which I prefer.

m2-2013-09-03

m2-2013-09-03-2

Posted in Astroimaging, Astronomy | Tagged , , , , | Leave a comment

Back into the ring

I had to revisit this before it disappeared from view for the winter. Sadly dew had other ideas (time to make some dew heaters…), but not before I’d managed almost two hours worth of subs. Only 90 seconds this time. I should perhaps have gone for longer in an attempt to reduce the noise.

m57-2013-09-02

Posted in Astroimaging, Astronomy | Tagged , , , , | Leave a comment

Final M27 of the season

After starting to get to grips with guided imaging I had to give this planetary nebula one more crack before I move on to pastures new. So this is two and a half hours of RGB in two minute subs. My longest piece of imaging yet. I leave M27 happy that I’ve had a fair crack at it, but eager for another go next year when I want more exposure time and longer subs.

m27-2013-08-31

Posted in Astroimaging, Astronomy | Tagged , , , , | Leave a comment

Guiding for Boys

And girls, and indeed astroimagers of any other persuasion.

I’ve finally assembled all the bits I need to start guided imaging. Whilst I have an ST80 that I plan to use eventually, for the moment I have a Skywatcher 50mm finder adapted to take a QHY5L-II camera that fits into the finder shoe on my 127 Mak.

I’m using AstroArt5 for imaging at the moment, but I couldn’t get it to play nicely with the QHY camera at the same time so ended up dropping back to that old standard PHD for doing the guiding.

There’s a real mess of cables now. I’m going to have to do something about that.

This isn’t a great image — the Moon was far too bright for it to be that successful, but the subs are 90 seconds long (compared with my previous limit of 45) and I’ve really not put much effort into drift alignment yet.

m27-2013-08-27-2-small

Posted in Astro Equipment, Astroimaging, Astronomy | Tagged , , , , | Leave a comment

Over (and under) the rainbow

It’s the first time I’ve seen one of these thought it appears they’re not that rare. A rainbow, photographed from our garden:

IMG_0006

But it’s a double — there’s a second rainbow above it, just visible in this photo (most easily at the treeline and the edge of the picture):

IMG_0007

And adjoining the first, underneath it, some additional refraction effects as well. I’ve seen quite a few double rainbows, but never noticed this before:

IMG_0009

It’s very faint, but it’s definitely there.

Posted in Environment | Leave a comment

Another M27 attempt

Still unguided, this is seventy minutes worth of RGB exposures of 45 seconds each. I’m not displeased with it, but the outer reaches of the nebulae definitely show that much longer exposures are required.

m27-2013-08-13-small

Posted in Astroimaging, Astronomy | Tagged , , , , | Leave a comment

Interesting cloud formation

I’ve not noticed anything like this before. To me it looks like lots of little knots bunched up together.

IMG_0004

There was more of the same in thicker cloud nearby, but being lit from behind by the Sun makes the details very hard to see.

IMG_0005

Posted in Environment | Leave a comment