Follow the reluctant adventures in the life of a Welsh astrophysicist sent around the world for some reason, wherein I photograph potatoes and destroy galaxies in the name of science. And don't forget about my website, www.rhysy.net



Showing posts with label CG project. Show all posts
Showing posts with label CG project. Show all posts

Saturday, 11 January 2025

You Can All Get FRELLED

New Year, New Software

How to start the blogging for the New Year ? Some topics are obligatory, like the current, shockingly abysmal state of global politics. Don't worry, I'll get to that. But I prefer to start on a more optimistic note, and with commendable timing, I had a paper accepted on New Year's Eve*. So let's do that instead.

* Presumably due to a drunken intern at an office party accidentally pressing the "accept all" button.

Presenting the FITS Real-time Explorer of Low Latency in Every Dimension. From the Farscape pseudo-swearword meaning a sort of combination of "hell" and "fucked". Hence the title of this post is extremely insulting.

The physics of galaxies is a jolly interesting thing, but you can't very well study what makes galaxies tick without having a sample of galaxies to start with. Finding the gassy buggers can be a right pain in the backside, so my major side-project is developing better ways to detect them. Sometimes that means writing fully automatic code that turns data directly into catalogues, but I prefer the old-fashioned approach of actually looking at the data we spend some much time and effort collecting. 

My main visualisation effort has been a code called FRELLED, which long-term readers will know is something I've been working on for a very long time. Basically it turns everyone's favourite 3D art software, Blender, into something astronomer-friendly.

... or at least, that was the idea. In practise... eeeehhhh, not so much. When it worked, it did work. You could load a 3D data set and fly around it and catalogue sources and everything ! It was great. I couldn't understand why it hadn't gone viral and made me millions of pounds from a grateful astronomical community. 

Two reasons. The obvious one is that astronomers prefer to spend their millions on telescopes and suchlike, rather than giving random donations to obscure Welshmen who give their codes away for free. The second, more interesting reason is that when FRELLED didn't work it, err, didn't work. It was pretty versatile in some ways but hopelessly limited in others. The learning curve was better than learning Blender from scratch but still pretty steep, it was full of bugs, and calling it astronomer-friendly would be overly-generous. It was astronomer non-hostile at best. 

It's very easy to provoke astronomers, mind you. Especially with clouds.

Lockdown finally provided me with the incentive to undertake the formidable task of rewriting FRELLED's ~11,000+ lines of Python code to bring it into the modern world. And not just because it needed an overhaul, which it did. But also because it had finally become simply unsustainable. With appalling timing, the earlier version had been written for Blender 2.49, which became obsolete almost  immediately as the very next version of Blender totally rewrote all of Blender's Python syntax*. This was hugely irritating : just as I'd got the hang of Python in Blender, they went and rewrote the whole bloody thing. I had the choice of either sticking with the functioning code I had or immediately starting from scratch.

* Python users – this was not like the upgrade from Python 2 to Python 3, which was relatively minor in comparison. No, this was a complete overhaul, so that virtually every internal Blender Python command was replaced with something totally different.

Well ! Naturally I chose the former, since I do have to do actual science as well at some point. I don't have the luxury of spending 100% of my time developing software – I need to actually use it. So FRELLED persisted in an abandoned version of Blender for several years, frequently tinkered with, never fully renovated.

But then lockdown happened, and recoding FRELLED was a much-needed project that could easily be done from home. So off I went and started coding. It helped that I'd already familiarised myself with more recent Blender versions for other projects.

This took quite a while.

Then, it took a while longer.

Things got derailed at various points because of the need for other projects.

But eventually, with the code doubling in size to 20,000+ lines and a bunch of new features, it was done ! Hurrah ! Let joy be unconfined, let there be dancing in the streets.

And so we all got wasted and did tonnes of cocaine or something. Although to give an idea of how long these things take, the paper alone took six months from submission to acceptance. That's after spending a full six months just figuring out the right journal to submit to.

Or at least, it was done enough. A project like this never really ends, there are always bugs to squash and features to add. But it reached a point where it did everything I wanted to do with a satisfyingly low number of bugs that one wouldn't need a flyswatter to turn it on.

I already did a somewhat in-depth look at how FRELLED works more than ten years ago (!) so I'm not going to go through it all again. Here I'll just look at what you can do with it and why you'd want to bother. If you're looking to actually use the code, the best place to get started is the home page, wherein you can find links to the embarrassingly large wiki, a complete set of video walkthroughs, and a 45-minute I-TRAIN video as well. It's got documentation in spades, and of course, you can always get in touch with me for help.


What Does It Do ?

This. It does this :

The main thing it does is look at 3D data cubes inside Blender. If you want the nitty-gritty on this see the earlier blog post, but the basics are pretty simple. Radio observations of galaxies often generate 3D data : as well as position and brightness on the sky, we also get velocity. That's not the same as distance, but using it in place of distance makes it easy to see all of our data all at once. And numerical simulations also create 3D data sets, including ones where the third axis really is distance.

The old version of FRELLED had a lot of manual coding in it because Blender 2.49 simply couldn't access a lot of more modern Python modules. That was hugely inefficient and wasteful, because Python is the equivalent of Ms Universe for astronomical codes : immensely popular. It's increasingly rare to have write your own code for basic astronomical tasks – chances are there's a Python tool for most operations. Not the high-level stuff, but for the low-level everyday processing, you're better off spending a little time searching for someone else's code than writing your own. Which makes it relatively easy to cobble all these snippets together to do the larger task you want them to do.

"Here it is, looking weird !" FRELLED is probably the short one with lots of tentacles.

What this means is that the old FRELLED had a lot of minor but annoying problems when looking at data of anything except 21cm emission. The new version, by using modules which do all the tedious coordinate calculations for me, lets it look at any wavelength with minimal fuss (at least for radio frequencies, at any rate). And cubes now load faster, sometimes very much faster indeed, and it can load data sets up to 27 times larger than the old version. Actually I've got a promising technique to increase this by maybe another order of magnitude in the works... but that's on the backburner for now.

There's more than one way to skin a cat, and there's more than one way to view a cube. Volumetric rendering, as above, is where you see the whole data set all at once. It's by far my favourite method but it's not always the best choice. So FRELLED also supports viewing cubes slice-by-slice, as it did before, but also with a couple of fun new additions. First, it can also render data slices as height maps (you might remember this from a solarigraphy conference) :

This is a nice example because it's a cube I've looked at a whole bunch of times and yet one of the major features escaped me completely. It's the galaxy M33, and in a standard map, you see the colours saturate at high values – in this case shown in red. The problem is that the dynamic range of the data is huge : the brightest features are much, much brighter than the faintest, maybe by a factor of a thousand. Choosing a colour scheme that can show features at all levels is really tough.

Same data set with the same colour scheme, but with different vertical stretching for the height maps (linear on the left, logarithmic on the right).

Height maps provide a nice way around that. As well as using the conventional colour map, each pixel is displaced by an amount according to its value. You can use different ways of mapping the data to colour and displacement (height), so in effect you're showing the data with two colour schemes at once. For example, as here, you could choose the colours to highlight the faintest features, while using the height to examine the structure in the brightest bits of the data. In this case, I'd never noticed the twin peaks in the galaxy, even though they're the dominant features !

Another major new feature is the ability to display the data as isosurfaces. These are like contours but in 3D, showing surfaces of constant data value. I have to say I originally poo-poohed these as a cheap excuse for 3D rendering : sure, it's easy to display a few thousand polygons as a surface, any fool can do that... what about rendering the hundreds of millions of voxels of the full data set, eh ? Honestly I really only put them it because I could. But I began to realise that I'd been far too harsh, because sometimes less is more. By reducing the data to this sort of very carefully, quantifiably selected display, all of the intervening noise is cut out completely. Ironically, the key to finding the most interesting features can be to remove most of the data. That goes well against my training and instincts as someone interested in the faintest objects, but it works.

And finally... virtual reality ! I love VR, I think it's one of the best technological developments of recent years. Yes, even if Mark Zuckerbot is an obsequious twat who's blatantly pandering to far-right despotism... a lot of people seem to confuse the worst sort of techbros (who are awful) with the tech they develop (which can, sometimes, be a genuinely good thing). But I digress.

Anyway, Blender 2.79 doesn't support real-time VR, so FRELLED comes with some export scripts to convert the files into a format that can run in later versions, tested up to 4.0. So you can step around your data either as isosurfaces or volumetrically, as though it were in the living room with you because why the hell not you crazy person for even asking.

Actually, I was a bit skeptical that VR would prove to have any scientific justification. I wanted this feature solely because it's cool, and if more people developed things because they were cool then the world would be a happier place*. Whether it had any real benefit was entirely besides the point. 

* Or perhaps not.

But actually, I have to say there probably is real value to this. It goes like this :

  • Viewing data in 2D, slice by slice, takes a long time to build up an intuitive sense of its full 3D structure.
  • Viewing the data as a 3D volume you can rotate on a 2D screen helps develop that intuitive sense much faster, because you can see all the data at once.
  • Viewing the data in true stereoscopic data helps even more. Now you don't even need to rotate, making it even easier to grasp what's a coherent structure in the data and what's just a chance alignment (so-called projection effects). You instantly see the 3D structures directly.

There's even another program, iDaVIE, which is fully in VR with almost no 2D interface at all. I like it very much (and the performance is oodles and oodles better than FRELLED), though for me the analysis tasks I need aren't quite there yet. Which brings me on to the next section.


Why Should You (Not) Use It ?

You should use it because you're a cool person who loves awesome things ! As the wiki says, it's as much fun as a pile of kittens, and what right-thinking person doesn't love a pile of kittens ? Nobody, that's who.

Well... maybe I exaggerate. A bit. But it should be, I hope, reasonably user-friendly. It certainly won't yell at you or call you rude names in Welsh like the old version did. There is, unavoidably, a learning curve, but it's probably now (almost) as shallow as I can make it. 

Felix Stoehr coined this wonderful term "fastronomy", which is basically something I've mentally labelled as the Facebook Principle for many years. The referee wouldn't let me keep this analogy in the paper, but at its heart, Facebook is little more than glorified email. You could, in principle, set up a vast email list of thousands of strangers and send them pictures of your cats and/or genitalia, or rant at them about how cancer is causing vaccines or why pigeons are all mind-controlling robots. Nobody does any of that by email; lots of people do some of the above on Facebook. It's even considered normal*.

* I dunno why the referee objected. I barely even mentioned genitalia in the paper, let alone robot-pigeons.

Why is that ? Probably because Facebook et al. make otherwise awkward social interactions convenient and casual. And this is something astronomers have been traditionally very reluctant to acknowledge. As discussed at length in Malta, we often focus so much on accuracy that we forget about interface, making mistakes so easy to make that the result is inaccuracy – the very thing we were trying to avoid ! So fastronomy is something I buy into enthusiastically : we should make features as easy and accessible to use as we possibly can.

Surely this is just self-evident ? Yes and no. There is a school of thought that says some things should be challenging and hard to do. And to an extent they've got a point. Some tasks are indeed really very difficult and can't and shouldn't be deliberately over-simplified : that risks fooling people into thinking they immediately understand things when in fact they need years of training. And on occasion this legitimate concern slides into elitist snobbery. Far more common, though, is that we as astronomers just have too much to do to spend their time doing good interface/experience design, though I'm glad to see that there is at least a movement towards encouraging more user-friendly software*.

* One of the stranger objections, which to be honest I couldn't quite get my head around, from the referee was whether or not there was any real evidence that by making things easier to use people would actually use them. I mean, yes, actually yes I do, lots, but the whole question seemed strange to me. Who in their right mind would prefer the more difficult option if the easier one gave results of equal quality ? That bit does seem self-evident to me.

So in that spirit, every operation in FRELLED is accessible via the GUI. You don't need to ever see the code. Every graphical element has an explanatory tooltip. Some things only possible in the previous version by learning some rather hacky tricks from the manual have now been properly and robustly integrated. And every tool panel comes with a simple help menu explaining its individual functions. Once the very basics have been grasped ("here's how to open a file"), most other operations should come naturally. If I can't quite make it so that you can download it and go, I can least make it so that after 5 minutes or less you should have a fair idea of how to do most of the stuff you'll ever need to do.

Which leaves my final point : versatility. There are a lot of good visualisation tools out there, and a lot of good analysis tools too. Much less common are tools that do both. What I've tried to do with FRELLED is seize this unoccupied middle ground and strike a balance. It doesn't do the most advanced visualisation possible but it does have multiple different ways of viewing data : most programs either do 2D or 3D, rarely both, let alone giving a choice of volumetric or isosurface displays. And while it doesn't do every analysis operation possible, it does enough of the basics. At least, for what I need to do. The goal is that users shouldn't have to switch between packages unless they need something which is really quite specialist.

... bugger, I forgot to mention the analysis tools ! I should give a brief rundown, I guess. One of the main things is you can easily click on a source and create an object you can use for cataloguing, masking, and analysing the target. You can give it a human-readable name so you'll remember it and find it again later. This all sounds trivial and honestly it is but nothing else seems to let you catalogue sources quite like this, which to me is still bizarre (though I gather that CARTA has something similar). You can then use those objects for overlaying optical data, adding annotations and axes (both for creating figures but also for training new observers), generating contours plots, and even doing some basic spectral measurements if you also have miriad installed. It does, in short, far from everything, but still quite a bit.

Example figure of some HI contours overlaid on an optical image, created entirely in FRELLED. It sounds minor but the the colour bar on the right was created automatically, which was otherwise a mind-numbingly tedious process that we'd only ever do if we were sure we'd got things just right. Making that automatic allows the user to experiment. The annotation objects and labels were created just by placing the cursor, typing in a toolbox and pressing a button. No need to open PhotoShop ! 

The interface plays a role in versatility too. There's a lot of options for setting things that previous were only visible under the bonnet, i.e. by tinkering with the code itself. Now, for example, you can manually configure the setup to optimise the display for smaller files, or (if you're feeling brave) to go for even larger data sets – all of which include checks to prevent the user from doing something really stupid to the file, or for correcting their mistakes if they insist on being a damn fool about it.

And what I really hope people will do is things I can't predict. I want them to be able to experiment with viewing their data in different ways, rather than sticking with what they already know. I want them to try stuff because it's so easy there's no point in not trying it, without feeling like they're going to muck up they're whole project if something goes wrong. And I want them to be able to load as many different sorts of data sets as they can, not be restricted to just one particular frequency. 

Most of all, I'd like users to feel like they're doing data visualisation (and taking it seriously as a much-needed aspect of analysis) without it feeling like it's a yet another skill set they need to learn. Users should, I hope, be able to learn Blender as astronomers, not become fully-fledged Blender artists who are also interested in science. Ultimately, making fun-looking 3D figures should be normal and for everyone, not a cool-looking bonus option that requires yet more specialist training in an already overloaded discipline.


What's Next ?

Aaaargh ! It happened again ! When I first looked in Blender post-2.79, the testing versions of 2.8 were available that had a version of the EEVEE internal real-time rendering engine that didn't work well. In FRELLED, the cube stays visible at full resolution and a high frame rate. In the pre-release of 2.8 there was a huge, horrible lag in updating the display which would have made it unusable. You can't freely explore a data set like this unless you're a masochist.

Then in the actual releases of 2.8 and later versions this was overcome. And they offer a really powerful extra option : you can adjust the colours of the images after loading them in, which you can't in Blender 2.79. One of the major restrictions of FRELLED is that loading the data sets can be quite slow in comparison to other programs, especially since if you get the colour scaling wrong you can't adjust it. So this alone makes recoding FRELLED, once again, worth doing. It would also give greater performance, allow for larger cubes, have direct viewing in VR, and a bunch of other things.

Recoding FRELLED the next time round won't be the same level of challenge as here, not even close. The Python syntax is more like a modified, incremental change from that of Blender 2.79 with only a few parts which were completely replaced. So this is doable, but it's not happening anytime soon because I did to some actual science again (watch this space). There are, though, a bunch of other features I'd like to add when I eventually get back to this :

  • Support for really large cubes (tens of gigabytes) and higher performance for smaller ones
  • Automatically overlaying data from online catalogues, to make source identification easier
  • Bring back the particle viewer from the old version (I had to drop this just because the project was ballooning into the unsustainable)
  • Allowing 2D files, just for the sake of it
  • And a whole bunch of under-the-bonnet changes that would make the experience still more natural and faster.




So that's this paper. No science here, just a development that's been in progress since 2012. Maybe this, the 13th year, will be the one in which finally people start to use it. Well, you never know.

Sunday, 18 June 2023

Flying Backwards Through Time

I've tried to make this video as self-explanatory as possible, so here it is without further ado :

This will be a short post just to give a bit more detail and some static images.

I was feeling really inspired and motivated by the recent solarigraphy meeting. I haven't made any dedicated data visualisation projects in a while, but one that's been gestating in the back of my mind is to try and show the dark matter in galaxy simulations... I think showing this as trails (a la the Sun in solarigraphic images) might look interesting.

But first, there's much lower-hanging fruit to pluck, though in a tangentially similar vein. Back in 2018, I decided it might be fun to try a time lapse from the office. Specifically, here, looking down the Jihozápadní V avenue.

Red X marks the spot.

So each time I went to the office, for the next ~16 months, I took a photo on my mobile phone, which was then a Huawei P10 lite. I tried to keep things as stable as I could, trying to get myself in the same position each time and lining things up in a similar way, but this was all done very quickly and by hand. I decided to do this particular view basically on a whim : it's somewhere I was present regularly and reliably at about the same time, it's quite a nice view, and looking in the other direction (towards the institute itself) you don't see so much. From the other direction, where you enter the avenue to go towards the institute, at certain times of year one gets a very nice "Stonehenge" effect :

Looking in the other direction avoids the sun being in the frame and I'm not sure if this was the right decision or not. I do wish I'd gone for landscape format, but having to avoid the tops of the trees would probably have annoyed me quite intensely.

Anyway, I didn't always manage to take a photograph every day. Sometimes I just forgot, occasionally going back later when I remembered (or if there were inconveniently-placed people that I hoped would bugger off if I left it for a bit). Sometimes I was away for conferences or holidays* (maybe even working from home from time to time !), and of course I wasn't there on weekends at all. Also the time of day varied considerably, from 7:45 am (God knows what that was all about) to 5:36 pm (probably I forgot to take the picture in the morning). The median time was 9:47 am, with a standard deviation of 1 hour. 

* Worst of all for this project, I tend to take holidays in the spring an autumn, so the most crucial moments of seasonal change are missing !

This is about as good as can be expected from a real-world side-project, where it's just not possible to keep things more controlled. So not only does the camera position vary quite a bit, but so does the lighting - and of course, this varies dramatically depending on the weather.

The result is the first sequence in the video - not much more than an unpleasant mess. We need not dwell on it any longer.

I was expecting as much. I knew I'd probably have to manually align the images to get a nice result, but somehow I just never got around to doing it... until now. So I imported all the images in Blender as transparent planes and manually aligned them by adjusting their scaling, rotation and location. If we show all the images together, here's the unaligned result :

Which explains why the animated sequence is such a mess. Here's the version after doing all the corrections :

Little bit of contrast adjustment on this one.

Much better. Probably there are better ways to do this; certainly there are a few cases where I didn't align things as well as I could, probably it could even be automated. But I enjoyed the process, so never mind. I'm also pleased with the way the colour turned out, and the blur gives it an air of authenticity, like it's from an archaic film camera instead of a modern electronic gizmo. Still, while the resulting animation sequence is far more bearable than the raw version, it's not quite as good as I was hoping for.

But together with all the long-exposure stuff I'd seen in the solarigraphy meeting, this gave me ideas of how to process the images differently. Why stop with a simple, traditional sequence of images ? These combined images are in effect pseudo-long-exposure photographs, compressing 16 months into single stills. They're not the same as proper solarigraphs of course, but the overall effect is similar in that you see multiple times all at once.

So I tried combining the images in different ways for the animation. The simplest approach, which gives a result I quite like, is to give all the images the same level of transparency, such that only when they're all combined do they become completely opaque. That's what's shown in still images above. In the animation, it gives very a much smoother animation than the original, and you still get a satisfying sense of change as it progresses. 

But why insist we see all the images ? If we restrict it so that only 30 images (one month) are ever shown on screen, and their transparency is such that their sum is fully opaque, then we get the best of both worlds : a nice smooth transition but with a more pronounced sense of change.

Choosing four images to give an obligatory "four season" compilation. We had a particularly hot and dry summer that year, with all the grass dead and even the trees looking unhealthy. Fortunately we also had a cold, snowy winter.

Finally, using the same technique I do for astronomy data visualisations, we can also show the data as a pseudo-3D volume. In effect this has been done already : the images are all separated along the into-the-screen axis, it's just you can't see this because the rendering disables perspective. If we enable it, we get this funky volumetric effect. I really like this in the animation, you get a sense of movement that's only partially true... the camera moves back from the images, but that's not the same as really moving through the street. It's actually moving backwards through time, a weird quasi-movement away from the images but not through the street itself, all the while showing images from longer and longer ago.

Or equivalently, in this image you're looking into the future by looking at the centre, and into the past by looking at the edges. Time is treated as a spatial dimension.

This concludes my brief foray into experimental photography. You may go about your business, and I'll get back to the world of astronomy.

Friday, 16 June 2023

Working On Sunshine

Staring At The Sun With Solarigraphy

Image by Diego López Calvín. Always reminds me of the time travel sequence in The Time Machine.

Alas, I can't take credit for the post title. It's something I once heard someone joke should be the official anthem of solar astronomers, though I've long since forgotten who it was. Anyway, last week I was lucky enough to attend a conference on solarigraphy, and I think this is worth a post.

Now as an extragalactic astronomer the Sun is our great foe in the sky that does naught but blind us all and make us wince in pain and fear. And to be honest, professionally my interest in the Sun is practically zero. Furthermore I'm somewhat averse to stepping so far outside my astronomical lane that I end up in a subject which is really another topic all together; some people even call solar science a branch of geophysics.

But this meeting was arranged as a combination of science, art and education. And there things get much more interesting to me, which is how I came to be on the local organising committee.

Solarigraphy is an unusual photographic technique which is at once incredibly simple and incredibly subtle. On the first day we had a little workshop where we made our own cameras. It consists of cutting open a can (in this case a beer can from our sponsor), making a pinhole*, adding in some photographic paper on the opposite side, and then – and this is the only tricky bit – quickly taping it in place before it gets a significant level of light exposure, and finally sealing the can back up with more tape.

* With a pin.

The small piece of tape on the lower part of the can (right image) is a shutter, to stop the camera from exposing before it's ready.

This incredibly simple device can produce remarkable images. You have to leave them for an extended period – typically six months – but the results can be fascinating.

The basic idea is to capture the paths the Sun makes through the sky, which varies throughout the year. With just a pinhole and a sheet of paper, you can capture both the solar tracks but also the landscape. The phenomenally long exposures (one claimant for the record is eight years) means you get something which is essentially the reverse of the T-Rex's vision in Jurassic Park : solarigraphy can only see things which don't move. Unless something appears consistently in the same place, you won't usually see it in the final image.

On the other hand, a predator from which you can run but never rest could be pretty damn threatening too. 

There are a lot of nuances to the technique and I'll describe a few of them in the course of recapping the meeting. The cameras themselves, though, really do tend to be extremely simple. The difficulties of using them are pragmatic : you have to find somewhere to place them where they won't be disturbed for a long time, you have to orient them so the rainwater can drain out, you have to fix them securely so they don't move about on their own. You don't need to develop the paper though : it does that all by itself. Instead you just digitally scan and process the sheet when you're ready. 

Depending on what goes right and what goes wrong, you can get an incredible diversity in the final results. Some look like professional-grade photographs whereas some look like Jackson Pollock caught the norovirus from a vomiting unicorn. As someone said, if you place two identical cameras in the same location for the same time, you'll still get two completely different results.

Without further ado, here's my summary of the meeting and the bits I found most interesting.


The Meeting

Day One

The 2nd International Solarigraphy Meeting took place in Ondřejov, a small village about 40 km from Prague. The only feature of note here is that it's home to Ondřejov Observatory, the much larger half and headquarters of the Astronomical Institute which employs me, and it's where the main meeting organisers are based.

We began with a talk by head honcho Maciek Zapior who introduced the topic (you can see some of his own solarigraphs on his web page). This was great for muggins here, as probably the only participant who'd never attempted any solarigraphy. Maciek covered not just the technique but also the wider context of the intersection of art and science : there's a search for beauty and truth, arguably, in both. Now personally I think the Universe is a great big bloody mess, but that the topic was raised was far more important than agreement, with these kinds of discussions for me being generally limited to online stuff. Incidentally, the name comes from the 1961 novel Solaris.

Next we had a talk by Cezary Bartczak about camera construction, especially pinhole cameras in general, which can range from the simple can constructions* to heavy-duty 3D printed versions. They're really quite satisfying objects in their own right, and now I wish I'd tried the "make your own pinhole camera" sets when I was younger. Note that pinhole photography in general does rely on chemically developing the image, whereas solarigraphy does not.

* Why IN GOD'S NAME don't we have a website called Only Cans ???

Following this we had the "build-a-solarigraph" session for which you've already seen my efforts above. It's going to be tough to find somewhere I can put this, but I'll have to try. Then there was an exhibition of a solarigraph contest which featured some very impressive images, which starts to introduce how flexible this technique can be :

See the link above for details. Some of these images were taken on a bicycle (!) and with a rotating turntable to produce intersecting solar trails rather than the usual continuous set.

This one is from Krzysztof Winciorek which shows a building in construction. I love this weird partial transparency, showing multiple times all at once.


I believe this one, by Łukasz Ciesielski, is of a car hubcap.

In the afternoon we had the online session. Apart from the first speaker, who didn't want to be recorded, you can watch the whole thing below, or just continue reading for my summary of the highlights. As a session all from non-scientists, I found this to have some of the most interesting talks of all. 

We began with Tarja Trygg, who initiated a Global Solarigraphy Project to image solar trails at different latitudes : at the equator the Sun goes vertically overhead, while at the poles it's almost horizontal. She noted that colours appear even on black and white paper, on which more later, and that solarigraphy makes the invisible visible (like imaging wavelengths we can't see directly, but in a very different way). Weirdly, when she started the project she asked people if the photographic technique was viable and was greeted with extreme skepticism. Why this should be, I don't know.

Next was Pablo Giori, one of the directors of the Experimental Photo Festival. This was very art-heavy and not all of it was to my taste... I can't say I'm ever going to "get" Dadaism; to me this looks like the cartoons in Monty Python. More interesting was his history of photography as a process of revolution, homogenisation, and democratisation. I normally find the latter word is heavily overused but in this case it's absolutely appropriate : photography today is available to everyone. Pablo noted that experimental photography is in the mindset, not the technique, with most photos today being "visual rubbish" of no artistic value. 

In this I think he's right but missing the point : most photos today are taken for communication and shared experience, not for artistic value at all. I take pictures when I visit famous landmarks not because I expect to do better than the thousands of professional photos that already exist, but because (a) there's no point in not taking them given how easy it is, (b) to have something that is mine, to remember what I saw. Pablo's talk was also very anti-capitalist, and though I tend to sympathise, I think he might be rather heavily overstating the case. I'm just not convinced that there's any sort of malevolence at work when it comes to Big Photo.

After a break we resumed with photographer and lecturer Justin Quinnel. I think this was probably the most fun presentation of all of them, full of engaging anecdotes of successes and failures. While I strongly agree with the need for outreach and education, I disagree that this shouldn't be digital : digital exploration is absolutely as valid as any other medium.

Possibly my favourite talk was by Michael Wesely for the clear presentation and sheer quality of the images, which are technically amazing. I liked very much his description of standard short exposures as presenting an illusion of stability : the reality is that all things are in constant (though varying degrees) of motion, and in some ways the long exposure photographs actually present a more correct view of the world – they aren't just a blur, they encode all the time information, events and stories as well as brief moments. I really liked some of the images where the buildings were in the process of construction, giving a powerful effect of seeing through time.

It's also worth noting that these are inherently privacy friendly because unless you're dead*, you won't show up well at all in a solarigraph. Wesely took an eight hour exposure of himself (which I think must have been agony), but only with strenuous effort did he appear as anything more than a blur. The vast majority of people show up only as interesting trails. The next talk, by Corine Dufresne-Deslières, picked up on this theme, also noting how if data is unlocatable, it's also unaccountable.

* If we really want to get noticed, we could try doing (a) solarigraphic porn or (b) going full Channel 4 and doing a solarigraph of a decaying corpse.

The final talk of the session was by artist and teacher Heather Palecek, who initially had no realisation that solarigraphy was an astronomical technique but approached it from the perspective of nature. In contrary to the more typical approach of striving for technical perfection, she likes the effects of nature interfering with the images : dirt, mould and water can all influence the colours that develop on the paper, sometimes leading to very surreal but striking images. This all made me wonder if there are any animals that experience time in this greatly sped-up way – I know some experience the world at a much faster pace than we do (hence their incredible reaction times), but I wonder if maybe snails have solarigraph-like vision...


Day Two

Maciej kicked off with a review of the current state of the art. He showed some more novel uses of the images, such as exposures of a single day where you get just one, dramatic-looking solar trail. Others used manual recolouring to give a more realistic appearance, which divided audience opinion. Some thought this meant it was "just a graphic" (whatever that means) while others thought it was clearly the better image. I lean towards the latter, as long as the process is clearly explained. While I do think that any art should have some immediate, self-explanatory value (hence that stupid, moronic painting of a can of soup is just the work of an ultra-pretentious tit, in my view), knowing the process behind it can at least add value.

He also mentioned https://analemma.pl/, especially their NxN project. This hammers home the importance of post-processing, with different artists coming up with very different versions of the same raw image. It's even possible to do solarigraph time lapses, although who claims the title of the "first" is open to debate (Maciej is not a fan of the superlative contests, and I tend to agree - that eight-year exposure image looks quite nice but is nothing extraordinary compared to some much shorter images). Finally he mentioned that you can buy pre-made solarigraph cameras for €20 online, which is just insane considering the total manufacturing cost is probably more like €2 and it takes ~5 minutes.

The afternoon social events included the obligatory visit to the telescopes, another solarigraphy exhibition, but also something much more unusual : a saxophone performance inside the dome of the 2m telescope. In the dark, with the saxophonist accompanied by Maciej who walked around with a torch looking for pieces of sheet music. Well, that's something I've certainly never experienced before.




The cars are very interesting. Here there were different cars parking at approximately the same spot each day, resulting in what Maciej calls a "generalised" car. In other images you can see sun reflections from moving cars in the parking areas.





In the evening we went to a nearby village for dinner, where I was sat with a wickedly mischievous older Polish gentleman. He spoke, very, very slowly and deliberately, and proceeded to tell me how he personally had helped convince Sean Connery to become a Scottish nationalist. For this reason, when the next day in the discussion session he declared that, "there's no emotion in art, that's all rubbish", and that solarigraphy is evidence that the Sun goes around the Earth... he probably wasn't being entirely serious.

On returning to Ondřejov I found it was a very nice evening so I went to the field of radio telescopes to watch the sunset.




In keeping with the experimental photography vibe, here's the Sun through a radio telescope.


Day Three

The morning session was pretty intense. We kicked off Łukasz Rogiński and Jakub Pacuk, who shared their first year of experience in solarigraphy – some of these images were really impressive, and I wish I could find them online. Grzegorz Hussak then showed us a solarigraph taken using a glass negative instead of the usual photographic paper, and while the contrast is extremely low – barely visible – on the physical glass itself, the digital scan was certainly clear enough. 

Maciej took over the next slot due to our only cancellation, resuming the discussion of the current state of solarigraphy. Again, many more amazing images – the single solar track during the eclipse was particularly nice – and more anecdotes of how people respond when they find the cameras in the wild. Some think they're part of geocaching and leave stuff inside. A few people, weirdly, take them away only to return them again. Some leave notes apologising. He moved on to solarigraphy as both an art and science, wherein art is free to treat time as a substance while in astronomy it can be thought of as an angle. He concluded with using automated shutters to trace analemmas and create more arbitrary patterns in the sky.

Next, Alexandre Sampaio – a professional theatre director and photographer – gave us a description of a solarigraphic tour of some Spanish islands he's doing... well, it's nice work if you can get it. Some of his images were great, especially one with a fountain where you could see both the water and solar trails at once. He also gave us a delightful naming contest for alternatives to solarigraphy* : the winner was "let-it-go-let-it-go-graphy", but I much preferred, "it's-a-blur-but-I-call-it-art-agraphy". Oh well, can't win 'em all.

* I can pronounce solarigraphy just fine in my head, but I always stumble on it physically. I find solargraphy very much easier.

Finally, chemistry researcher Tomáš Slanina gave us a really interesting, totally different talk on the chemistry that makes solarigraphy work, and photoreactivty more generally. He gave a few amazing demos where he mixed different chemicals in beakers and you could see them shining in UV light. For photographic paper, light causes silver nitrate to solidify, which makes it opaque. Why the different colours appear I'm not sure, but this appears to be the result of something more complex.


After a break, professional artist Helena Jiráková began the final session with a talk on art in astronomy. She covered the works of many artists besides herself, including Nancy Holt's Sun Tunnels,  James Turrell's Skyspaces and Roden Crater, Chris McCaw's use of the Sun to literally burn tracks in film, and perhaps my favourite, Olafur Eliasson's spectacular artificial indoor sun made of hundreds of lamps with a mist of sugar water.

Then it was my turn; I've put my slides online here. There was very little new content here but I assembled it in a different way for a different audience. I began with a very brief overview of galaxies and described how radio data tells us about the invisible dark matter, using that old exploding galaxy sim to start things off. I described how radio receivers work and the importance of understanding that they're spectrographs, so they collect frequency data as well as brightness. Receiving 4,096 frequency channels all at once somewhat compensates for having only seven spatial pixels to work with... and it also means you have a lot of freedom to choose how you render the data.

I began with the standard approach of channel maps, in which each frequency channel creates a different image, moving on to volumetric rendering by way of the glass cube and a 3D movie. Then I tried to address Maciej's comments about truth by showing the exact same data set rendered in four different ways : channel maps, height maps, volumetrically, and isosurfaces. You really do get different information from the data if you just look at it differently.




Pablo Giori had said that art isn't in the business of truth; Michael Wesley that it was all about stories, and various others that it's all about different perspectives, self-discovery, empowerment etc*. My take is similar. How you visualise your data really does affect how you interpret it, not just aesthetically but also scientifically : some information is far easier to discern using one technique than another. I think none has a claim to be more valid or true than another, but each can be more appropriate for tackling different questions. I ended with an overview of my efforts to turn HI data into art, which I don't need to recount here because you can just see that link instead.

* It was a very, very woke meeting.

It's always fun to see audiences looking silly.

People seemed very enthusiastic about all this and I came away with an adrenaline buzz that always accompanies a successful talk. In fact, it's inspired me to pick up a project that's been on hold for four years – with luck, that should be the next post here in a couple of weeks or thereabouts, so watch this space.

The final talk was Zbigniew Makarewicz on science as art and politics. This was interesting, though at times hard to follow (what he meant by saying that art was aristocratic I'm not sure). He began quite delightfully with something along the lines of, "Thank you all for indulging my sadistic tendencies, especially Mr. Taylor for speaking English". He proceeded to say that painting is not art, that an artist is someone who creates something of special quality. Art, science, technology and politics, he said, are all interconnected in common culture : they are separate endeavours but do not exist in isolation. And again, he noted that artists and scientists view the same data in different ways, resulting in different works. Einstein viewed the world as equations, Bohr as something more poetical. 


It was all very heady stuff. I liked it a lot, even though so many speakers had the unfathomably bizarre tendency of having laptops with desktops in which every available space was occupied with an icon. It's all well and good to meet new people and get different perspectives, but there are limits. So for now, it's back to science I go.

Sunday, 15 May 2022

Where The Magic Happens

Today's post will be an unusual mixture of home décor, medieval navigation, and extragalactic data visualisation. Which sadly does not mean involving any interior designer astro-pirates, although it obviously should.

Hypothesis : there is no blog post that cannot be improved by the addition of interior designer astro-pirates.

Anyway, since the start of the year I've been indulging in some retail therapy. My home office where I've been working for most of the last two years is a 3x3m space consisting entirely of bog-standard IKEA furniture. You know, stuff like this :

I mean, it works. It's definitely a table. You can tell because you can put stuff on it and they stay cleverly well above the ground at an easily accessible height. It's not even ugly, but it's certainly minimalist... and that's just not my aesthetic at all.

After two years of various levels of lockdown (and a great deal longer in terms of living independently) I decided that I needed to do something about this. These days I have enough disposable income that I can indulge myself and there's just no need to go for the basic-but-boring stuff any more. The latest and hopefully final lockdown really pushed me into going slightly Grand Designs, even though I think such programs are only one step above Big Brother or Love Island in terms of sheer mindless inanity. 

My preferred aesthetic is an 18/19th century drawing room. The sort of place the First Sea Lord of the Admiralty would gather his underlings to discuss an expedition to the Northwest Passage, all while sipping a big glass of brandy. Something like this :

Or perhaps this :

Or this :

I want it to look rich and dark. I want it to be cosy. I want it to be ornate. I want gleaming brass instruments that look functional but don't actually do anything useful. I want everything to have unnecessary detail. And - and this is the important bit - I want the walls to be covered in maps. Basically, I want the exact opposite of the IKEA design philosophy.

Of course this project suffers from a few teeny-weeny limitations :

  • I have a 3x3m space to work with
  • I'll need to transport most of my stuff at some point when we eventually get a permanent* home
  • I'm not a millionaire.
* Whoever decided to coin the term "forever home" was a linguistically deplorable moron.

Still, there's a lot that can be done within those restrictions. And now I'm going to annoy the heck out of y'all but not having taken a picture before I got started...

Initially I had nothing on the walls at all, which I really do not like. So finally I got around to hanging a couple of old maps, one of Prague (I got it free in a shop years ago) and one of the world (I had a much bigger version back in Puerto Rico but was unable to transport it, and to my annoyance posters are a lot more expensive here for some reason).


Not at all easy to photograph because of the lighting and room size. They look a lot nicer in reality.

These are okay, but as things progressed I began to find them inadequate. So now they're relegated to the mezzanine area*, where they're doing a decent job of making the walls look better than if they were blank.

* We actually have a large and very comfortable flat, but it doesn't really make ideal use of the space - hence my tiny office room.

All maps are hung with plastic poster hangers, which are a great alternative to traditional frames - those are vastly more expensive, non-transportable, and size-restricted. I'd have preferred something more wooden, but finding the right size is tricky. I should add a fourth constraint that everything for this project needs to be available in or ships affordably to the Czech Republic, which can be surprisingly difficult.

After this prelude, the first real task was the sofa. This came with the flat and is fine in itself, but the cheap red IKEA throw I bought years ago now seemed less of a pleasantly inexpensive addition and more of a horribly garish detraction. What am I, a bullfighter ? I wanted something more astronomical, so after a good deal of searching I eventually found this one. I was willing to spend quite a bit more than for the bog-standard stuff, but something in me rebels very strongly against a throw costing much more than about £50*, so finding one that also reached the necessary size took some considerable searching.

* As a rule, I'm against expensive fabrics. I mean, it's a piece of cloth, for heaven's sake. It doesn't do anything except sit there waiting to be stolen by astro-pirates.


Next (I think - the order might not be correct) came a globe - surely an essential part of any map room. I was quite tempted by a more fancy version, but in the end I settled on a very cheap brass/gold-effect model with an overall aesthetic that I like very much. It's amusingly inaccurate, claiming that Puerto Rico is part of the UK for some reason (it isn't and never was; our attempt at invasion resulted in 10,000 soldiers getting dysentery). It's also a bit wonky and the grid lines don't match up, but I like it very much anyway. It just looks nice, which is all I need it to do.

The miniature Stonehenge, oddly, sort of works.

I believe the next step was the rug. Again much searching in order to find one of the right design and size. While I hadn't initially planned on this blue and gold colour scheme, it was very important that everything be self-consistent. No longer would I tolerate a higgledy-piggledy mixture of styles, because the First Sea Lord of the Admiralty certainly wouldn't put up with such shenanigans. So I found this one, which I am thoroughly satisfied with. 


Now we're getting somewhere. Next, I think, came more accessories. In my protracted searching I came across armillary spheres, which you often see large versions in country gardens. This led me to the wonderful Etsy site, which is a great place for inspiration if nothing else. It's got tonnes of armillary spheres and similar products, but suffers from not all stores taking ordinary payment methods - some only do Pay Pal, which is extremely irritating. Eventually I found one for an acceptable price on ordinary old Amazon.


The armillary sphere is a simple way of tracking the positions of the stars throughout the year. The elaborate brass construction is exactly what I'm going for, although the size was disappointing. I spent a long time searching for an affordable option which would closely match the globe in size, so they'd pair nicely as earth and sky. But this one is considerably smaller than advertised. Later, as you can see, I purchased a second, more expensive model, but to my great irritation this was exactly the same size. I left a negative review of the seller on Amazon and used them as a flanking pair to the globe instead. Not exactly what I wanted, but it does the job. Plus I get to make endless jokes about how my big brass balls are too small, so there's that.

Probably at this point I started replacing the maps. I wanted a more genuinely ancient appearance than the accurate vintage style poster I already had. At this point Redbubble entered my sphere of consciousness, and it must be said that this is a truly excellent - if somewhat expensive - site. Their choice of maps is vast, and you can get all the designs printed on a veritable plethora of different products. 

But in the end, finding posters of the right size, design and cost proved too difficult. Rebubble's main annoying limitation is you can't customise the size of the posters. I circumvented this by doing custom poster printing directly through a local service. This is rather cheaper than Redbubble for posters of the same size, and the print quality is excellent. Their "advertising posters" are apparently meant to be viewed from a large distance but honestly you could jam them in your eye and the resolution would still look great, apart from all the blood getting in the way. Plus them come on matte paper which looks an awful lot better than glossy photo prints. They get very unfairly low reviews on Google Maps - every time I used them, the service was excellent.

Anyway, after much searching I found two publicly available high-resolution scans of historical maps. One of these came about because I remembered a gorgeous image in a book I have : The Sky Atlas by Edward Brooke-Hitching. If you like maps and space, then this is the book for you. My favourite image was the horoscope of Iskandar Sultan, grandson of the should-be-much-more-notorious Tamerlane. Showing the planetary alignment at the time of his birth, it's a fabulously intricate and opulent piece of work, and looks great as a printed poster. It also matches perfectly with the colour scheme of the rug and throw.


Next a more conventional map for the opposing wall behind my monitor. For this I found a 1630 Dutch map which was the first to be published in an atlas and one of the first to show Australia. I chose it entirely based on the design and colour scheme.


It's interesting to see the evolution of styles in maps through the centuries. Medieval maps tend to be elaborate cartoons. Renaissance and Enlightenment era works are more informative but still gloriously rich works of art. Later pieces tend to reduce the purely decorative elements to a minimum, while the modern versions usually strive for accuracy above all else and use only the data itself to create anything you could call "art". Personally, it's the 17th-18th century styles I find most appealing, though I do like the later Victorian designs as well.

I think at about this point it became necessary to do something about the IKEA tables. I considered replacing them, but the design I want is usually very expensive and they'd be difficult to transport when we eventually move. I did add two small sets of bamboo drawers, which look nice enough and hold enough stuff to significantly reduce clutter, but for some reason a small set of darker drawers with brass handles proved nigh-on impossible to find.


For the tables, Shirley had the bright idea to use contact paper. This is much cheaper than getting a replacement and the results do look very convincing. Applying it is quite some hours of work for even a small table, however - it's quite a fiddly process, and at all stages you have to continually smooth out air bubbles. The final results are not perfect, but they are more than adequate for my needs. You really can't see the defects unless you go looking for them.

We're almost at the end of the "look at all the lovely things I bought, aren't I a good capitalist" section. The penultimate step was to have some ornamentation for the side table. What I really wanted was a vintage style constellation globe, but for some reason affordable replicas of these just don't exist. The armillary sphere looked nice for a while, but when the big brass lamp I ordered eventually arrived, it just looked a bit sad and lonely, and I was in no mood for a third attempt at getting one of the correct size.

There are three main items on my wish list for my ideal permanent office. One is a brass astrolabe. Another is a drinks globe. The third is a working brass orrery. All of these are just too expensive, but my searching had revealed many wooden alternatives. I settled on this tellurion, which is a type of orrery limited to the Sun, Earth and Moon. This sounds simply but actually to ensure accurate rotation periods the gearing system is quite complex, and this intricate appearance is something I'm very keen on. There are a number of versions of this available but this particular model sold itself by the size, design, and the fact that it's a Ukrainian company. How could I say no to that ?


Finally, the old red cushions on the sofa were now looking just plain silly in contrast to the dark blue throw, and the galaxy conference towel and Welsh flag draped over the side rail (my office is on the mezzanine above the bedroom) just didn't just it. So for the finishing touches, the most expensive part of the process took me back to Redbubble. For this I ordered four cushion covers and two "tapestries". The cushions consist of two medieval world maps and two Sun/star mandala designs. The wall hangings are archaic maps of the northern and southern sky hemispheres, showing the constellations as mythical figures.

Et voila, my miniature map room is almost complete.


But not quite. With most other blank space now full of colour and pattern, the wall space next to the bookshelf (which you can't really see here) began to look increasingly empty and in need of filling. For this I decided I needed to really make the space feel like my own by making my own poster from scratch. 

As the area of the sky I've spent far the most time investigating, I chose the Virgo galaxy cluster. You may have seen some of my efforts on this before, but for this I needed something different. I needed a map that prioritised atheistic over information content, filled with purely decorative elements and prepared to sacrifice - if necessary - accuracy*. At the same time, I felt as much information as possible should be preserved and I would far rather simply omit information rather than doing anything as perverted as altering any.

* In the old-style depictions of modern information, I was heavily inspired by Eleanor Lutz, although her stuff definitely doesn't compromise on accuracy. 

This is what I came up with - my attempt at how the Virgo Cluster would have been depicted in the 18th century :

A clearer view of the image itself can been seen here. Fun to do as a one-off but it would be hell if regular publication figures were expected to conform to this sort of styling...

I made it using a customised version of my data visualisation tool FRELLED, which I spent a lot of lockdown time recoding. Making this map actually helped me to finally realise that sky axes on scales this large need to be curved, though this still needs to be properly implemented into the main code. I customised FRELLED so I could import each component on separate layers, which was essential when combining and managing so many different elements.

The map shows pretty much all the known galaxies in the Virgo Cluster Catalogue, except for a few which had to be hidden by the text. Major structures within the cluster are labelled, following Boselli et al. 2014. I deliberately avoided drawing boundaries between the different structures, however, because it really isn't possible to define these very precisely. I also added X-ray contours from the ROSAT X-ray satellite (a file I was fortunate to have from many years back, as this is very difficult to find), which is a crucial component of the cluster as it's widely believed to have a dominating influence on galaxy evolution. And then around the sides we have the Virgo figure herself, a key explaining the different galaxies plotted, the location of the cluster in the larger constellation, and scales to indicate the size at the different distances of cluster sub-structures. I kept this in the conventional unit of Mpc, not light years, because this is a map for me and not for public outreach. Note also the compass indicates that east and west are reversed, as is astronomical convention.

There was nothing particularly complicated about making the map - it was largely just a matter of iterations. By far the most time-consuming part of this was labelling all the galaxies. There are several thousand of the little buggers, and as new components were added, these labels had to be moved and resized several times. This part wasn't fun, but it's very satisfying that just about every galaxy label is visible and legible.

For the rest, I thought about adding stuff about the dark hydrogen clouds I study, but I decided this would be too technical*. Similarly, I could have added boundaries of other surveys besides the VCC, or added different selections of the galaxies from multi-wavelength catalogues. This too would have resulted in an overly-complicated appearance. I kept it simple : optically selected galaxies from the three major catalogues of the area**, with the figures of the major observes shown in little portraits : Charles Messier (who catalogued fuzzy blobs for the explicit purpose of not being confused with comets, note the decoration above his frame), John Dyer (who compiled the New General Catalogue, though I think there's a typo and he should actually be Dreyer), and Bruno Bingelli (who produced the indispensable Virgo Cluster Catalogue, a true bible for Virgo studies). 

* Someday I would love to have a true atlas of the cluster, showing the distribution of different structures - different galaxy types, redshifts, wavelengths, in all the various parts of the cluster. A man can dream...
* Which range in time from the 18th century to the present day. This means that giving the galaxies symbols which are sized based on which catalogue they were first recorded in is a reasonable proxy for their true size and brightness, since the earliest catalogues could only detect the biggest, brightest galaxies.

As to the purely decorative elements, most of these are, ummm, acquired from the internet. This being a case of something which is only ever going on my wall, I didn't pay much attention to where I got the clipart from (hence this one will never be made available at full resolution, let alone for sale). My major contribution to this was the swirly pattern found within parts of the purple bordering, especially around the portraits - this is so intricate that even on the final gigantic 12k x 8k resolution print, the finest details are unresolved. Which was probably overkill but never mind.


So that's the saga of my mini map room. It's basically complete now, except for the need to apply contact paper to the big black bookshelf and some minor odds and ends. It may not be my dream study, but it's a heck of a lot closer than the the IKEA standard I had before. And all for less than the price of an Oculus Quest - not a bad spring project, and it finally got me doing artwork again. Hooray !