## Archive for the 'software' Category

### ShutterSploshShredderPlots

Sunday, October 7th, 2018

Remark: The code as posted at the randform post ShutterSploshScatterPlots needs to include the new Content Security Policy.
That is you have to embed the following lines (at least thats how it worked here for the moment) into your html head:

<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<meta http-equiv="X-Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<meta http-equiv="X-WebKit-CSP" content="default-src 'self'; script-src 'self'">


Moreover the javascript has to be pasted into a separate file and referenced accordingly within your html body, like for example as:

 <script src="shutter.js" type="text/javascript"></script>


In case you feel a bit overcharged by all that – as a courtesy for you I quickly filmed the program output with my mobile and turned it into a gifanimation, which you can watch after the ” Read the rest of this entry”.

### august note

Friday, August 31st, 2018

This month no new randform post.
The previous post is hard enough to digest.

On a personal note:
The previous post is actually a main result of a phase between mid/end 2012 – spring 2015. In this phase I was investigating in which way I could apply my math/physics and visualization skills to climate science. In 2015 I more or less ended the investigation, since I found that -amongst others- my programming skills were not good enough for a continuation on a more professional level and started to work in a company in which I have been working since then.

### simple greenhouse gas models

Sunday, July 29th, 2018

Rotatable with your mouse after you click on “Read the rest of this entry“.

Most of randform readers might have heard that the socalled greenhouse effect is one of the main causes of global warming.

The effect is not easy to understand. There are two posts which give a nice intro to the greenhouse effect on Azimuth. One is by Tim van Beek and one is by John Baez.
The greenhouse effect can also be understood in a slightly more quantitative way by looking at an idealized greenhouse model.

In the above diagram I now enhanced this idealized greenhouse model (as of Jan 2017) in order to get an idea about the hypothetical size of the effect of an absorption of non-infrared sunlight and it’s reradiation as infrared light, i.e. the possibly effect size of a certain type of fluorescence.

I sort of felt forced to do this, because at the time of writing (February 2017) the current climate models did not take the absorption of UV and near infrared light in methane (here a possible candidate for that above mentioned hypothetical greenhouse gas) into account and I wanted to get an insight into how important such an omission might be. The simple model here is far from any realistic scenario – in particular no specific absorption lines but just the feature of absorption and reradiation is looked at.

The above diagramm shows the earth temperature in Kelvin as a function of two parameters, as given by this enhanced model. The two parameters can be seen as being (somewhat) proportional to densities of a hypothetical greenhouse gas, which would display this type of fluorescence. That is the parameter x is seen as (somewhat) proportional to the density of that hypothetical greenhouse gas within the atmossphere, while y is (somewhat) proportional to the density near the surface of the earth. Why I wrote “somewhat” in brackets is explained below.

The middle of the “plate” is at x=0, y=0 (please hover over the diagram) which is the “realistic” case of the idealized greenhouse model, i.e. the case where infrared absoptivity is 0.78 and the reflectivity of the earth is 0.3. The main point of this visualization is that linearily increasing x and y in the same way leads to an increase of the temperature. Or in other words, although raising x by a certain amount leads to cooling this effect is easily trumped by raising y by the same amount.

As far as I learned from discussions with climate scientists the omission of non-infrared radiation in the climate models was mostly motivated by the fact that an abpsorption of non-infrared is mostly happening in the upper atmossphere (because methane is quickly rising (but there are also circulations)) and thus leading rather to a global cooling effect than a global warming effect and so it in particular doesn’t contribute to global warming. The enhanced simple model here thus confirms that if absorption is taking place in the upper athmossphere then this leads to cooling. The enhanced model however also displays that the contribution of methane that has not risen, i.e. methane that is close to the earth surface, is to warm upon absorption of non-infrared light and that the effect of warming is much stronger than the cooling effect in the upper athmosphere. Unfortunately I can’t say how much stronger for a given amount of methane, since for assessing this one would need to know more about the actual densities (see also discussion below and the comment about circulations). Nonetheless this is a quite disquieting observation.

I had actually exchanged a couple of emails with Gunnar Myrhe, the lead author of this corresponding chapter in the IPCC report, who confirmed that non-infrared light absorption in methane hasn’t sofar been taken into account, but that some people intended to work on the near-infrared absorption. He didn’t know about the UV absorption that I had found e.g. here (unfortunately my email to Keller-Rudek and Moortgat from 2015 whether there is more data for methane especially in the range 170nm-750nm stayed unanswered) and thanked for pointing it out to him. He appeared to be very busy and as drowning in (a lot of administrative) work, so that I fear that those absorption lines still might not have been looked at. That is also why I decided to publish this now. I sent a copy of this post to Gunnar Myrhe, Zong-Liang Yang and John Baez in June 2017, where I pointed out that:

I have strong concerns that the estimations of the global warming potential of methane need to be better assessed and that the new value might eventually be very different then the current one.

- but I got no answer.

### energy prospects

Sunday, February 25th, 2018

Sende-Pentode RS289 from radio technology museum Königs-Wusterhausen

There was again a discussion with randform reader Oekologisch Interessierter about the development of nuclear energy production. The original post was in Oct. 2010 i.e. briefly before the Fukushima disaster in Mar. 2011 and the outlook cited there looked quite differently from what actually happened.

### We will tailor what you want

Thursday, December 28th, 2017

“We will taylor what you want ” Hannah Perner-Wilson explaining the shop concept of her and Mika Satomi’s new shop, the: “KOBA Maßschneiderei”
(more…)

Wednesday, November 29th, 2017

pan and zoom as usual

In 2006 Tim played around with swarm simulations in processing and ended up with funny flush like settings. We tweaked the parameters in such a way that it ended up looking like and sounding like a galaxy being flushed down the drain and made it into the art work “dipper galaxy flush” where dipper refers to the wellknown patterns in the constellation Ursa Major. Our comment wasn’t though referring to a particular galaxy there but to galaxies in general – which could include our own.

If you look at the processing code you see that Tim’s simulation doesn’t use e.g. Newtonian gravity, although Tim used a force which is similarily “centralizing” as dark matter.

Inspired by discussions about dark matter and dark energy and general relativity at John Baez’ social media I wanted to get a feeling of how important the feature of dark matter is in order to allow for galaxy formation.
The above is a realtime javascript simulation using purely newtonian gravity with no dark matter but two giant masses (indicated by blue circles, which size is not proportional to the smaller circles) and something that could be called an “inelastic binding”. That is if the distance between masses is smaller than some number then those “close-by” masses behave as if they stuck together as in an inelastic collision, or in other words: the velocity of a mass is set to be the weighted average velocity of the close-by masses (details in the code, how much inelastic collision you want is set by the parameter “mix”).

It was acutally not so easy to find a configuration which somewhat mimicks galaxies, but the above looks a bit as if, I find. If I find the time I may add a 3D viewer. Try yourself – the source code is open.
Here how a scientifically advanced galaxy simulation, which includes dark matter looks on a super computer: World’s first realistic simulation of the formation of the Milky Way and here an interview with the author Lucio Mayer. Just like us many other users think it looks like a filmed flush – if you read the comments.
Here another simulation by Fabio Governato on his youtube channel: The Formation of a Milky Way like Galaxy. He has a whole variety of galaxy formation videos.

remark: the simulation is a modification of Mike Bostocks canvas swarm simulation at https://bl.ocks.org/mbostock/2647922

update 1.12.2017: There was a mistake in the addition of the z-speed, which is now corrected in the above version. Luckily the correction did affect the overall appearance only slightly.

### ShutterSploshScatterPlots

Friday, September 29th, 2017

Mohammad Ali (mohdali) had made a nice illustration of the socalled rolling shutter effect. He wrote a programm in javascript which uses the library d3 called Rolling shutter.

This program was used by artist Scriptique to program a kind of “paint-by-number recreational occupation for your browser” (as the artist called it). It should display something like “a paint drop dropping”.

The program has a MIT licence and you can see how well your browser paints by numbers by pasting the program into a file and then opening the file in your browser (tested with firefox).

### Sunday Drone

Wednesday, June 7th, 2017

Tim has to cope with an increasing workload, moreover heavy commuting also takes its toll, so he currently doesn’t get too much recreational time – even not on weekends. But over pentecost he now managed to create a nice drone with matching visuals.

Thursday, January 12th, 2017

Planetary science at The Shard: How soon is the sun’s radiation going to be destructive? (apart from the effect on the CCD chip)

This blog post is based on a thread in the Azimuth forum.

The current theories about the sun’s life-time indicate that the sun will turn in about 5 billion years into a red giant. How and when this process is going to be destructive to earth is still debated. Apparently according to more or less current theories there has been a quasi linear raise in luminosity, quoting from p. 3 “Distant future of the Sun and Earth revisited” by K.-P. Schröder and Robert Connon Smith, 2008:

The present Sun is increasing its average luminosity at a rate
of 1% in every 110 million years, or 10% over the next billion years.

But let’s recap a bit.

In the Azimuth forum I asked for information about solar irradiance measurements. Why I was originally interested in how bright the sun is shining is a longer story, which includes discussions about the global warming potential of methane. For this post I prefer to omit this lengthy historical survey about my original motivations (may be I come back to this later) – meanwhile (see above) there is an also a newer reason why I am interested in solar irradiance measurements, which I want to talk about here.

Strictly speaking I was not only interested in knowing more about how bright the sun is shining, but how bright each of it’s “components” is shining, i.e. I liked to see spectrally resolved solar irradiance measurements and in particular measurements from a range between roughly the frequencies* 650nm and 950nm.

So I had found the Sorce mission, which is a NASA sponsored satellite mission, whose website is located at the University of Colorado. The website provides very nicely an interactive part with a fairly clear and intuitive LISIRD interactive app with which the spectral measurements of the sun can be studied.

As a side remark I should mention that this NASA mission belongs to the NASA Earth Science mission, which is currently threatened to be scrapped.

By using this app I found in the 650nm and 950nm range a very strange rise in radiation between 2003 and 2016 which happened mainly in the last 2-3 years. Here you can see this rise:

spectral line 774.5nm from day 132 to 5073, day 132 starting Jan 24 in 2003, day 5073 is end of 2016

Now, fluctuations within certain spectral ranges within the sun spectrum are no news, however here it rather looked as if a rather stable range suddenly started to change rather “dramatically”.

I put the word “dramatically” in quotes for a couple of reasons.

Spectral measurements are complicated and prone to measurement errors. Alone the subtle issue of dirty lenses etc. suggests that this is no easy feat and that so this strange rise might easily be due to a measurement failure. Moreover as said it looked as this was a fairly stable range over the course of ten years, but maybe this new rise in irradiation is part of the 11 years sun cycle, i.e. a common phenomenom. In addition, although the rise looks big it may overall still be rather subtle.

But so – how subtle or non-subtle is it then?

In order to assess that question I made a quick estimation (see forum discussion) and found that if all the additional radiation would arrive on soil (which of course it doesn’t due to absorption) than on 1000 sqm you could easily power a lawn mower with that subtle change! I.e. my estimation was 1200 W for that lawn patch. WOA!

That was disconcerting enough to download the data and linearly interpolate it and calculate the power of that change. I programmed a calculation program in javascript for that. The computer calculations revealed 1000 W, i.e. my estimation was fairly close. WOA again!

How does this translate to overall changes in solar irradiance? Some increase had already been noticed. NASA wrote 2003 on it’s webpage:

Although the inferred increase of solar irradiance in 24 years, about 0.1 percent, is not enough to cause notable climate change, the trend would be important if maintained for a century or more.

That was 13 ys. ago.

I now used my program to calculate the irradiance for one day in 2016 between the frequencies 180.5nm and 1797.62nm, i.e. about a quite big part of the solar spectrum and got the value $$627 W/m^2$$ and computed the difference to one day in 2003 and got $$0.61 W/m^2$$, which is 0.1% in 13 years, rather then 24 years. But of course this is no average and fluctuations play a big role in some parts of the spectrum, but well – this may indicate that the overall rate (!) of rise in solar radiation may have doubled. And concerning the question of the sun’s luminosity: for assessing luminosity one would need to take the concrete satellite-earth orbit at the day of measurement into account, as the distance to the sun varies or at least average – but still, on a first glance this appears disconcerting.

Moreover for this specific range I mentioned above I calculated the value $$192 W/m^2$$ for day in 2016 (day 5073), so this would mean for this frequency range the increase in 13 ys was about 0.5% and most of it in the last 2-3 years.

Given that this spectral range has e.g. an overlap with the absorption of water (clouds!) this should at least be discussed.

And indeed one can even see the rise in this range within the solar spectrum without zooming in. See how the spectrum splits into a purple and dark red line in the lower circle?

Difference in spectrum between day 132 and 5073

The upper circle display another rise, which is discussed in the forum.

So concluding all this looks as if this needs to be monitored a bit more closely. Finally the theories about the lifetime of the sun are only theories.
In particular it would be important to see wether these rises in irradiance are also displayed in other measurements, so I asked in the Azimuth Forum, but sofar got no answer.

The russian wikipedia site about solar irradiance contains unfortunately no links to russian satellite missions (if I haven’t overseen something) and there exists no chinese or indian wikipedia webpage about solar irradiance. I also couldn’t find publicly accessible spectral irradiance measurements on the ESA website (although they have some satellites out there) and wrote in December an email to the head of the section solar radiometry of the World Radiation Center (WRC) Wolfgang Finsterle with no answer yet.

In short if you know about publicly available solar spectral irradiance measurements other than the LISIRD ones then please let me know.

update Jan 15, 2017: This post appeared also as a guest post on John Baez blog Azimuth with minor modifications, in particular the english was polished by John.

correction Feb, 3, 2017: * frequencies should read inverse spatial frequencies or simply wavelength

### xOSC keygloves

Sunday, December 4th, 2016

In the randform post “Gesture steered Turing machine” I used data gloves, which were made following the instructions of Hannah Perner-Wilson who is a member of the gloves project. Being weary of sitting too much at the computer I had also written in this post that I would like to make more use of body movements and in particular include danse-like movements in computer interaction and in particular in programming.

Unfortunately rather shortly after I had written the post a not so nice medical indication in my vicinity which was -at least partially- due to too much computer sitting urged me to more or less dramatically speed up this project.

The gesture recognition for my gloves, which were used in the Turing machine example, works, but it is not yet fine grained and exhaustive enough. So I had to look for an easy and fast and at least to some extend workable and affordable solution which would insure a more direct and precise steering possibility, like some version of key gloves. To make it short: In the end I made my own version with Tims help. Again it’s only a start but still.