<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by rob asher on Medium]]></title>
        <description><![CDATA[Stories by rob asher on Medium]]></description>
        <link>https://medium.com/@rob.asher?source=rss-3650e3d7900a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by rob asher on Medium</title>
            <link>https://medium.com/@rob.asher?source=rss-3650e3d7900a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 03:07:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rob.asher/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Architectural automation]]></title>
            <link>https://medium.com/@rob.asher/architectural-automation-da30ae1ea77e?source=rss-3650e3d7900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/da30ae1ea77e</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[algorithmic-design]]></category>
            <dc:creator><![CDATA[rob asher]]></dc:creator>
            <pubDate>Sun, 17 Sep 2017 04:25:37 GMT</pubDate>
            <atom:updated>2017-09-17T04:25:37.566Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*FGR_oUehH4q9gXde1FNgvA@2x.jpeg" /></figure><h4>An estimate of risk</h4><p>Recently <a href="http://www.abc.net.au/news/2017-08-08/could-a-robot-do-your-job-artificial-intelligence/8782174">Alphabeta estimated</a> that 17% of the job of an architect is susceptible to automation. It’s a good report for 2 reasons. First, they split the profession up into tasks and recognize that some of those tasks will be automated whilst others will not. Of course a robot is not going to ‘do architecture’, but many of the tasks of the architect – taken in isolation – will be automated. Secondly, and more boldly, they actually list some of the tasks they think architects do. “Review art or design materials” is, for example, considered a task that would be automated whilst “review environmental permits, plans or reports” is considered unlikely to be automated. My contention is that the proportion of architectural work to be automated has been dramatically underestimated by Alphabeta.</p><p><a href="http://www.alphabeta.com/wp-content/uploads/2017/08/The-Automation-Advantage.pdf">Their analysis</a> seems to be from the inside out as it were: pretend everything outside the firm, the macro environment, stays the same and then start imagining which tasks inside of the firm can be automated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*hKKxUjxCfnhlP9chGc92Yg.png" /></figure><p>Now, given this starting point I think their analysis is pretty good. I could quibble about exactly which tasks will be automated, but it seems reasonable to guess about 20% of architectural work will be automated, as it currently stands.</p><p>But what if we do the analysis from the outside in? That is, an analysis that recognizes that the shifting macro environment outside the firm profoundly alters work inside the firm. Consider another professional field: software development. Examined from within the firm the activity of programming has not changed, either in terms how it looks (still dudes drinking coffee, slapping away at keyboards) or in terms of hours per task. But the advent of open source and platforms like github and stack overflow means the whole process of software development is orders of magnitude cheaper, easier and more transparent than it used to be. Work can be duplicated, shared and re-used in a way that has had a fundamental impact on the amount of work there is for programmers to do.</p><p>My assertion is that the architectural macro environment — the water in which we swim — will, like the software development macro environment, be reconfigured in such a way that architectural work will be made orders of magnitude more susceptible to automation.</p><h4>Free communication</h4><p>A big driver of this is what I call architecture as an API, mainly because API is such a buzz term, but also because I think it captures something important. Design services have two major costs: design and communication. Architecture as an API has two impacts on these costs:</p><ol><li>communicating complex architectural intent to specialist and clients essentially free as de facto data exchange standards solidify and are exposed through APIs.</li><li>the premium on automating design process rises because design process becomes the major cost driver within the profession as communication costs fall.</li></ol><p>The technical details of free architectural communication are non-trivial but largely solved, but the strategic importance of this system shift has not percolated broadly through architectural practice, at least in my knowledge. There are firms leading the profession into the future: <a href="https://flux.io/">Flux</a> and <a href="https://www.onemap.com.au/">OneMap</a> are slightly different takes on what this future will look like. What both of them have in common is communicating data to a client at essentially no cost. In OneMap’s case this is an automatically generated site report, in flux’s app this is access to a building information model.</p><h4>Two steps to adoption</h4><p>The systemic shift I am describing will take place in two steps and OneMap has taken the first. Design services used to be communicated human to human, OneMap now communicates machine to human.</p><p>The impact of this kind of automation is arguably considered in Alphabeta’s analysis, although you can see how even difficult to automate tasks — client relationship management for example— are abstracted away even if they are <em>not actually automated.</em> The systemic change removes the necessity for these jobs.</p><p>The next step of this technological shift is the really interesting one. Since it is now essentially free to prepare design reports, the most expensive part of buying design services <em>is spending the time understanding the design you have purchased</em>. Once they are purchasing design services from a machine, to minimize costs, a purchaser of design services is served best by<em> automating the consumption of design</em>. Design services will increasingly be communicated machine to machine. This step is obvious for Onemap. A client looking for an optimal site is not well served by printing out thousands of design reports and then laboriously ranking them. They are far better served by asking OneMap to do a site report on every site and then building a system that automatically finds the optimal sites. The design report itself will likely never be produced, and OneMap’s structured data will be consumed through an API.</p><p>As another example, imagine an architect has a building design which requires a structural solution. Previously it was expensive to communicate the architectural intent to a structural engineer, relatively cheap for the engineer to do the actual engineering (they build the model and the machine sizes the elements), and then very expensive for the engineer to communicate his structural solution back to the architect. Now all that communication is free. How does this change things?</p><p>If each option previously took 2 hours to communicate, it is likely 3 options would be considered. Now each option is communicated in 1 second, machine to machine. Instead of instructing an engineer to develop 2 concrete structural solutions with different grid spacings, and 1 timber option, the architect would ask the engineer’s API and request thousands of concrete, timber and steel structural solutions. In the initial phases of the systemic adoption of APIs the architect might peruse the engineering options manually, but as the system matures architects will develop algorithms that automatically review and cull obviously unsuitable structural solutions. The design space will increasingly be traversed by machines, without the designers even being aware of which design options have been considered.</p><h4>Further implications</h4><p>Once this kind of architectural communication becomes widespread, the data structures become more uniform and well known. This increases the applicability and therefore potential value of any automating design algorithm. I can speak from experience that compliance checking is incredibly susceptible to automation. I have written numerous algorithms which verify compliance to SEPP65 and other regulatory codes. The greatest difficulty in widespread adoption of these algorithms is the lack of common data structures. The algorithms themselves are non trivial but from my samples set they can be solved by a decent programmer in about 2 person weeks on average. Architecture as an API by increasing the value of algorithms and lowering the cost of applying them by giving machine access to models will push the profession strongly in the direction of algorithmic design.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da30ae1ea77e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Inflation]]></title>
            <link>https://medium.com/@rob.asher/inflation-dd1ce11f3876?source=rss-3650e3d7900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/dd1ce11f3876</guid>
            <category><![CDATA[weimar]]></category>
            <category><![CDATA[economics]]></category>
            <category><![CDATA[inflation]]></category>
            <dc:creator><![CDATA[rob asher]]></dc:creator>
            <pubDate>Thu, 14 Sep 2017 04:43:29 GMT</pubDate>
            <atom:updated>2017-09-15T00:02:49.019Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a working document on inflation, as I find more evidence I will likely change my mind on some of these positions.</p><h4>Approach</h4><p>My approach to understanding inflation is firstly empirical. Models — abstractions that simplify reality in order to explain some feature of it — can be made to say anything, and very frequently abstract away key relationships that actually exist. A good working knowledge of history shows immediately most models are wrong.</p><h4>Inflation doesn’t effect social wellbeing</h4><p>Inflation is held by most economists to be socially disruptive and highly undesirable or, stated differently, inflation leads to poor social outcomes.</p><p>As I said in the approach I will only give this argument credence if it can be demonstrated empirically that inflation correlates with negative social outcomes. Social outcomes are seldom measured directly (“Society, tell me, how are you?”) but are inferred from indicators. I state this because when I get into arguments about inflation with economists they immediately give me non-empirical, deductive arguments, arguments like ‘people like price stability’, ‘planning is difficult when there is high inflation’ and ‘allocative efficiency is reduced by high levels of inflation’. Now these all may be true, but in order to persuasive they need to be empirically shown.</p><p>The big empirically observable indicators of social outcomes from an economic perspective are:</p><ol><li>GDP growth,</li><li>unemployment and</li><li>wage growth.</li></ol><p>If those are all good I assume that good social outcomes are being achieved. (I am looking at these indicators rather than more proximate indicators of social wellbeing — life expectancy, educational attainment etc. — because the rise of these indicators is so obviously unrelated to inflation that to consider them would immediately decide the argument in my favour.)</p><p>Who measures these indicators? Luckily, the RBA is awesome at research and they measure them. RBA charts are always a pleasure to read, they feel solid and classy, like old oak furniture.</p><p>Here is what they show.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*tl8qFZQStBR6ZzJqyTCn2A.png" /><figcaption>There is no pattern there. (Source: The Australian Economy in the 2000s RBA conference, 2011)</figcaption></figure><p>This chart shows pretty unequivocally that GDP growth per capita and unemployment levels have nothing to do with inflation. There are doubtlessly many models each demonstrating that there is indeed a connection, but what you believe some model thrown together with from a 2nd year maths course or your lying eyes.</p><p>It is very clear inflation has little negative impact on society economically speaking, and indeed it is enormously helpful if you are a battler with a mortgage.</p><p>Wage growth is shown in the following chart and again, has no relation to inflation rates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*gCMhPZ_O9aDL49VgHkHeTA.png" /><figcaption><a href="http://www.aph.gov.au/About_Parliament/Parliamentary_Departments/Parliamentary_Library/pubs/rp/rp1516/ParlBaseSal2016">http://www.aph.gov.au/About_Parliament/Parliamentary_Departments/Parliamentary_Library/pubs/rp/rp1516/ParlBaseSal2016</a></figcaption></figure><h4>If you are a battler, inflation is good</h4><p>Below I have done two cashflows, one under a high inflation environment, and another under a low inflation environment. What it shows is that under a high inflation (and therefore high interest rate) environment you can initially borrow far less on a given income and repayment schedule, but once you borrow it your debt is quickly reduced by the inflation. Obviously everyone else is as limited in how much they can borrow as you are. This means the price of assets that are determined by debt availability like houses actually remain low.</p><p>Under low inflation, you have far more borrowing power — debt driven asset prices rise rapidly as you know — and worse you sit under the debt a lot longer since inflation doesn’t help you out.</p><p>Cashflow under high inflation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*v9Or47fg_kPMhi_rzDlyQQ.png" /><figcaption>This is your parents.</figcaption></figure><p>Cash flow under low inflation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*7kcaXNApsFm-AO7ZXnFK_A.png" /><figcaption>This is you.</figcaption></figure><h4>Stable prices are not real</h4><p>The main argument given for keeping inflation low is that price stability is a good thing for all. But inflation is a composite measure: it is made up of multiples prices and each one of them moves even if CPI does not. There has been no price stability in your lived experience even though inflation has been low and stable. This lack of price stability has had no impact on your ability to plan and enjoy your life. This chart demonstrates very clearly that massive inflation and deflation over the 10 years to 2014, note this chart is net of CPI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*MWycj_fJSpDlPYvKDcwQxA.jpeg" /></figure><h4>Hyperinflation</h4><p>Given inflation is demonstrably ok, what inevitably happens in these arguments is that the spectre of hyperinflation is raised. The argument is as follows: inflation may be ok, but inflation may lead to hyperinflation and hyperinflation is bad.</p><p>Most of the argument is true. Inflation is ok below a certain level (looks like about 10–20%) and no one would argue that hyperinflation is good. But inflation does not lead to hyperinflation naturally. Hyperinflation is always a deliberate policy choice. At some level this is obvious: you cannot have a trillion dollar note without deliberately setting the machine to print one.</p><p>The major story about this is <strong>Weimar Germany. </strong>To understand this hyperinflation you need to understand that the Germans were waging economic and diplomatic war to force the Allies to remove the reparations they had imposed. The French even invaded Germany in 1923 as part of this economic war.</p><p>To see that this was a series of deliberate policy choices you can simply browse the wiki.</p><p>“From August 1921, Germany began to buy foreign currency with marks at any price.” This was a decision by the German government in response to their political reality. They did not have to buy foreign currency with marks at any price. There were other policy options available to them. They <em>preferred </em>hyperinflation.</p><p>“Inflation was exacerbated when workers in the Ruhr went on a <a href="https://en.wikipedia.org/wiki/General_strike">general strike</a> and the German government printed more money to continue paying for their <a href="https://en.wikipedia.org/wiki/Passive_resistance">passive resistance</a>.” Yes, the German government printed money — not by accident, but by deliberate operation of government and machinery — to achieve a political outcome.</p><p>When the German government felt that hyperinflation was not achieving the desired political outcome, they simply stopped it <em>in one day</em>: “On November 16, 1923, the new Rentenmark was introduced to replace the worthless paper marks issued by the <a href="https://en.wikipedia.org/wiki/Reichsbank">Reichsbank</a>. Twelve zeros were cut from prices, and the prices quoted in the new currency remained stable.”</p><p>Prices were not sticky upward, or downward, or in any direction. Inflation expectations did not affect anything, and cryptic forward guidance was not required.</p><p>More evidence that the hyperinflation was engineered is the complete lack of impact that it had on the economy. The below table is from <a href="http://socialdemocracy21stcentury.blogspot.com.au/2013/01/real-output-loss-in-austrian-and-german.html">here</a>. Notice that even in 1922, with major inflation, the economy grew 8%. Of course the economy shrunk in 1923: the French invaded the Ruhr and everyone stopped working. This is the single best way to reduce GDP. In 1924 the Weimar continued its run of highly deliberate, complex, economic policy successes by growing the economy 17% in real terms. Notice also that it was only when the enemies of inflation got into power in 1929 that the economy went down the toilet, and Hitler ascended to power.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*vryZcsu6e58tHZ_UHGIDOA.png" /></figure><p>In conclusion inflation is good for young people and not so bad for everyone else.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dd1ce11f3876" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Information Design]]></title>
            <link>https://medium.com/@rob.asher/data-journalism-examples-a6ef12514419?source=rss-3650e3d7900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6ef12514419</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[minard]]></category>
            <dc:creator><![CDATA[rob asher]]></dc:creator>
            <pubDate>Sun, 03 Sep 2017 23:32:15 GMT</pubDate>
            <atom:updated>2017-09-10T08:52:07.315Z</atom:updated>
            <content:encoded><![CDATA[<h4>Techniques of visual communication</h4><p>The ubiquity of computers has changed the way humans are able to consume data. Because computers can visually represent immense quantities of data immediately it becomes feasible to engage with and explore data sets that were previously incomprehensible. The visual techniques are not new. What is new is that the computer does the ‘drawing’ automatically, and so quickly. A change in speed can make a qualitative difference — a movie is just a bunch of stills flashed rapidly in succession, but cinema is qualitatively different to photography.</p><p>The skill to clearly communicate a trend, pattern, break or any other ‘feature’ within a dataset is at a premium because such features are the best kind of supporting evidence for an argument. Decisions are made — ideally at least — based on well supported arguments. Visual communication is thus increasingly important in decision making (including design decision making.)</p><p>Edward Tufte is the guru of this kind of communication. He <a href="https://www.edwardtufte.com/tufte/vitalstats">expresses</a> the core of his communicative philosophy thusly:</p><blockquote>‘For non-data-ink, less is more. For data-ink, less is a bore.’</blockquote><p><a href="http://i.imgur.com/WntrM6p.gif">This gif</a> from Dark Horse Analytics shows how progressively removing non-data-ink dramatically improves communicative clarity both of the raw data and also how a certain feature of the data provides evidence for an argument. (In this case, as in so many cases, the argument is that bacon is not so bad.) In fact the gif communicates that evidence so clearly that the argument does not even need to be stated in order to be understood.</p><p>For historical reasons, for the reason that it is Edward Tufte’s favourite visualization and because it is in the public domain it is also worth studying in some detail M. Minard’s canonical visualization of Napolean’s catastrophic incursion into Russia.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V9sq--wHI1wm1zA3Gng1sg.png" /><figcaption>image from wikipedia</figcaption></figure><p>The visualization is essentially a map. It does not look like one at first, because Minard has removed almost all geographic information except for the path taken by Napoleon’s army, some rivers and the names of the towns the army passed through. Minard is very clear on what he is trying to communicate and any information not pertinent to that — non-data-ink — is ruthlessly culled.</p><p>The second technique that Minard uses is to distill multiple pieces of information into 1 visual element. The line which represents the path taken by the army is manipulated to display an additional 2 pieces of information. First, its width represents how many men are in the army when it is at a particular point. Secondly its color represents whether the army is advancing or retreating.</p><p>The final piece of wizardry used by Minard is to display 2 very different kinds of abstraction to tell a story. In addition to the map — the representation of the army’s movements in space — Minard displays the temperature as a graph, with an x and a y axis. Cleverly he distorts the x axis of the graph so that each temperature measurement is connected with a location on that hellish retreat. Minard uses a simple black line between each location and temperature record to communicate this connection.</p><p>The efficiency with which this flat graphic represents temporal, spatial, and numerical information is humbling to this designer — especially given it was drawn in 1869.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*YEYWNz_2VrH4owVH8Kh2kw.png" /><figcaption>beef</figcaption></figure><p>Here is another map drawn by Minard which combines different visual representations of data to communicate where Paris sources its beef supply.</p><p>Below are some examples of journalism — stories designed to inform— that make some use of data visualization.</p><p>The first one is fun — almost art — it represents the data as a sea of moving white points on a black background.</p><p><a href="https://www.nytimes.com/interactive/2014/09/14/sports/baseball/jeter-swings.html">342,000 Swings Later, Derek Jeter Calls It a Career</a></p><p>This visualization feels like it was drawn by hand, but then it is animated right in front of you. Notice the bright colors and the labelling.</p><p><a href="https://www.nytimes.com/interactive/2014/08/13/upshot/where-people-in-each-state-were-born.html#California">Where We Came From and Where We Went, State by State</a></p><p>This is a robust, utilitarian visualization which definitely lacks charm. It is till remarkably powerful, which demonstrates how a few fundamentally good communication decisions can cover over a multitude of small crappy communication decisions: Russian is represented by the same color as Cantonese for example. I have a high degree of confidence that this visualization was created semi-automatically which explains its powerful yet junky character.</p><p><a href="http://www.smh.com.au/data-point/sydney-languages">Sydney&#39;s melting pot of language</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6ef12514419" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QGIS to mapbox]]></title>
            <link>https://medium.com/@rob.asher/qgis-to-mapbox-e958678b9ab7?source=rss-3650e3d7900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e958678b9ab7</guid>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[mapbox]]></category>
            <dc:creator><![CDATA[rob asher]]></dc:creator>
            <pubDate>Sun, 03 Sep 2017 09:23:23 GMT</pubDate>
            <atom:updated>2017-09-03T23:12:43.705Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week I wrote about how to visualize ABS data using QGIS. This week I will take the visualization that I made last week and display it in the browser using <a href="https://www.mapbox.com/">Mapbox</a>. There are 2 compelling reasons for using Mapbox:</p><ol><li>it allows you to host your visualizations on interactive web maps in the browser</li><li>it allows you to display your data in 3D (<a href="https://blog.mapbox.com/run-the-catalina-eco-marathon-in-3d-a176aea18094">like this</a>)!</li></ol><p>3D is interesting because it will allow us to visualize 2 dimensions of the data simultaneously. Height will represent 1 dimension, and colour another.</p><h4>GeoJSON</h4><p>First, let’s make a <a href="http://geojson.org/">geoJSON</a> file using QGIS. This is a great file format for relatively small geometry files in the browser.</p><p>We want a geoJSON with as few attributes as possible so that the file is as small as possible. Since we can view 2 dimensions I am going to want 2 fields — one for each dimension — and then the geometry.</p><p>The first dimension I want to visualize is the same dimensions I visualized last week. It was the percentage change in personal income between 2011 and 2016 and I used this expression in the style expression in QGIS:</p><blockquote>( “2016Census_G02_NSW_POA_Median_tot_prsnl_inc_weekly” — “2011Census_B02_NSW_POA_short_Median_Tot_prsnl_inc_weekly” )/ “2011Census_B02_NSW_POA_short_Median_Tot_prsnl_inc_weekly”</blockquote><p>First thing I am going to do is duplicate the shape file I have been working with and add a column which will record into memory the output of that expression for every geometry. To duplicate a shapefile right click on the layer in QGIS and click duplicate.</p><p>Then go to the style menu and copy the expression.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*kDulnTEwjVOQHukHdi_8_w.png" /><figcaption>copy</figcaption></figure><p>Close the Style menu and then right click on your duplicate layer and open the attribute table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*d0ROMUGTjypIhmKeDTG2DQ.png" /></figure><p>Once there hit Ctrl+I to open the field calculator. Keep the create new field button checked, make the field a ‘Real’ since we are dealing with a percentage growth which is fractional. Set the precision to 5 and then paste the expression from the style menu into the expression tab. Click done and the field has been appended to the attribute table.</p><p>Since joined fields cannot be deleted and don’t save with nice names let’s duplicate the 2016 personal income field. Create a new field in the same way you just did, but for the expression open the ‘Fields and Values’ menu on the right and double click on “2016Census_G02_NSW_POA_Median_tot_prsnl_inc_weekly” to add it as the expression. This will set every value in the new field to replicate the value in “2016Census_G02_NSW_POA_Median_tot_prsnl_inc_weekly”, which is exactly what we want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p3aTbFjazngGF9DOKEtxWQ.png" /></figure><p>Now let’s get rid of a whole bunch of fields we don’t need for our visualization. Use Ctrl+L to open the delete field menu and delete everything except the fields we need: a postcode field (POA_CODE16), the growth field you have just created (which I called “inc_growth”) and then raw personal income for 2016.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*AWkJKs7qkhZ2S4PHJ2LhoQ.png" /><figcaption>gone… well not quite</figcaption></figure><p>The join fields will not delete since they are not actually on this layer. To get rid of them, click on the pencil button in the top left of the attribute table to save and then exit the attribute table. Open the properties menu of the layer and in the ‘Joins’ tab click the minus button to get rid of both sets of joins.</p><p>If you once more open the attribute table it should be nice and clean and small:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*Vqfh6Jn8fOglDOM-PPHrQA.png" /><figcaption>so clean</figcaption></figure><p>Your layer will likely have disappeared now since the fields that were determining the styling have been deleted or unjoined. Change the style so that it depends on the newly created ‘inc_growth’ field to get it back. Then use the select button to select everything on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tXAMary1e9o_8ZF4892wBw.png" /><figcaption>The select button</figcaption></figure><p>Because we only loaded NSW data, only NSW should be visible since the style receives null values for the other states.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*4Bt3kQgHNqVPtxLMZzrTew.png" /><figcaption>only NSW is visible</figcaption></figure><p>Now right click on the layer and save as. In the format select GeoJSON and make sure you set the CRS to EPSG: 4326. This is the projection used by web maps in degrees and minutes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*tPh32fcphBh0E12xYtaMnQ.png" /></figure><p>Once this is done we are almost ready to move on to the Mapbox side of things. But before we do that in order to get a performant web page it is a good idea to reduce the size of the geojson. To do this load it into <a href="http://mapshaper.org/">http://mapshaper.org/</a>. Drop your geojson it and simplify (use the simplify button)!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4TYvjb_LXlJUimfDehCChg.png" /></figure><p>Once you’re done export and notice the large reduction in file size. Mine went from about 40 to about 4 mb.</p><h4>The map</h4><p>Now that we have our geojson let’s put it on a map. The quickest way to do this is to go to Mapbox examples and copy the most relevant. <a href="https://www.mapbox.com/mapbox-gl-js/example/3d-extrusion-floorplan/">I think it is this one.</a> Create a directory and create a file called index.html inside of it, and then paste the html from the Mapbox page into that file.</p><p>I have python 2.7 installed so from the terminal I navigate to the directory containing the file I just made and run ‘python -m SimpleHTTPServer’ to start serving the contents from localhost:8000.</p><p>There are 3 things we need to do.</p><ol><li>Focus the map on NSW.</li><li>Load the geojson into the map</li><li>style the geojson to communicate the data.</li></ol><h4>Focusing the map on NSW</h4><p>Mapbox allows you to set the centre and zoom which the map will be set to upon instantiation. The centre is set in an array with longitude first and latitude second, zoom is set by a number with the higher the number being more zoomed in. I found the following settings get us close enought to NSW.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*jTpBRpcjPTRjSdRnDvXRDQ.png" /></figure><h4>Loading data into Mapbox</h4><p>In the same directory as the index.html file you just created, create a file called data.js. Drag the reduced size geojson file data into that file and then add a variable called data and set it equal to the geojson.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*GFM8XUeorJJo-oZzsUG2Tg.png" /><figcaption>data data data</figcaption></figure><p>This allows the geojson to be read into the html file as a javascript file. To actually do that navigate to the head of index.html and add a script tag which references data.js — which you have just created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*EnpltdP-iC1zsWchFmjqXw.png" /></figure><h4>3D rendering</h4><p>Mapbox will extrude the geojson to 3D if the layer is set to a ‘fill-extrusion’ type. Luckily in the example file you have saved is set up to go.</p><p>Since you load data.js into the html document in the head it will be already loaded by the time the map.on function runs and you will have access to the data variable defined inside of the js file.</p><p>In the map.on function change the data parameter from the example to the data variable which you have just created.</p><p>The only other thing needed to change is the ‘paint’ parameter. The ‘fill-extrusion-color’ should refer to the in 2016 income property which we called ‘16_income’. Set ‘fill-extrustion-color’ to ‘16_income’. The ‘stops’ parameter is a very clever way Mapbox allows you to define colour gradients. ‘Stops’ accepts and array of arrays. The first item of each array refers to a possible value of the relevant property (in this case ‘16_income’) and the second time refers to a colour. You can have as many of these arrays as you like, but need at least 2. I have set it such that income of 0 is set to ‘black’ and income of 1000 is set to ‘orange’. Mapbox will automatically interpolate between these 2 values.</p><p>In a similar way I have set the stops of the ‘fill-extrusion-height’ parameter, except I have used ‘inc_growth’ as the property that height refers to. 65535 is the highest Mapbox will extrude which is why I chose it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*XVK5N-cipXPwlMgFFBwYWQ.png" /><figcaption>all stops set</figcaption></figure><p>That’s it! Open your browser to port localhost:8000 if you are using python 2.7 and witness what you have made:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zxsh83Vo_tuwrQHazhtGgw.png" /></figure><p>Using height to display percentage income growth means a far more meaningful comparison of growth rates can be made. The South West of Sydney has grown richer quickest (in the last 5 years), but Sydney CBD (in bright orange) is still the richest absolutely.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e958678b9ab7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QGIS and ABS]]></title>
            <link>https://medium.com/@rob.asher/qgis-and-abs-4a7352802b0c?source=rss-3650e3d7900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a7352802b0c</guid>
            <category><![CDATA[abs]]></category>
            <category><![CDATA[qgis]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[sydney]]></category>
            <dc:creator><![CDATA[rob asher]]></dc:creator>
            <pubDate>Sun, 27 Aug 2017 07:01:07 GMT</pubDate>
            <atom:updated>2017-08-27T07:01:07.958Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post I am going to show you how to use QGIS to visualise the change in some stats from Census 2011 to Census 2016.</p><p>This is pertinent in the context of the Greater Sydney Commission’s desire to create <a href="https://www.greater.sydney/three-cities">Three Cities</a> within Sydney. These Three Cities will allow people to ‘realistically achieve the goal of being able to live within 30 minutes of where they work, study and play. This makes life more liveable and way more productive and sustainable for everyone.’</p><p>The change between Census 2011 and Census 2016 will allow us to see the direction Sydney has been moving over the last 5 years, and compare that with the bearing desired by the GSC.</p><p>First thing let’s get the data.</p><p>Head to <a href="https://datapacks.censusdata.abs.gov.au/datapacks/">https://datapacks.censusdata.abs.gov.au/datapacks/</a>. Select the ‘Postal Areas’ geography (which unlike the SA1’s remains the same from census to census) and then download the NSW datapack and the Esri Shapefile Geography Boundary. Once you’ve done that select the 2011 Census Datapacks from the Census year dropdown and download the NSW datapack. You don’t need the 2011 geography.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANwju6ubGy7469kl3mMZtg.png" /></figure><p>Unzip the whole lot into a folder — you’ll have to rename some of the subfolders, which have the same name for both censuses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*doVGFDgaChuNZQTL4lVvGQ.png" /><figcaption>ready to go</figcaption></figure><p>Now, download, install and fire up <a href="http://www.qgis.org/en/site/">QGIS</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*Mu0jNMp6A9GpFV-bAu1EIA.png" /><figcaption>a beautiful blank canvas, with a beautiful yellow banner at the bottom</figcaption></figure><p>To get a good looking map is very easy in Q. From your data folder just drag and drop the POA_2016_AUST shapefile onto Q. A word on shapefiles. They are strange beasts. A shapefile is actually multiple files. You will notice you have a POA_2016_AUST with a .cpg, .dbf, .prj, .shp and .shx extension. The shapefile is the one with the .shp extension and that is the one you should drag into Q. That file needs the others in the same folder to work properly. It is particularly sensitive to the .prj and the .dbf which are necessary (the presence or absence of the .cpg or .shx has never worried me.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*AoxDfCAjgQMJfTI8_RA9Ow.png" /><figcaption>oi, oi, oi</figcaption></figure><p>We have geography! All the postal areas in Australia, including that one in the middle that looks like it would take a month for a postie to travel across. ABS data comes in separate files in order to make it less cumbersome: the geography is stored separately to the data tables and the data table you are interested in needs to be joined to the geography table, <a href="http://www.sql-join.com/sql-join-types/">like in sql</a>. To get there let’s load some data tables (which have no geography) into Q.</p><p>From the Layer menu select ‘Add Layer’ and then ‘Add delimited text layer’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*bHPgjC0TF0QOUBWvEwWZYQ.png" /></figure><p>From the menu browse to the ‘2016 Census GCP Postal Areas for AUST’ folder you downloaded and select table G02, whose full name is 2016Census_G02_AUS_POA. Table G02 is the easy table, full of interesting things the ABS has already done some processing on. It is called Selected Medians and Averages. The other tables are far more raw and difficult to deal with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*9eFEuSoaH6VRPsl3afra9g.png" /><figcaption>In it goes</figcaption></figure><p>Make sure you select CSV as the file format and click ‘No geometry’ or else Q will try and find some columns which represent X and Y values and make points out of them. In this case the geography geometry is stored in a separate file which we have already loaded. Click OK and the aspatial layer will be created in the layers tab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/235/1*zhnetA_BjSqc4jEDD2K76Q.png" /><figcaption>definitely in there</figcaption></figure><p>Now everything is in there, let’s join the two together using what Q calls the ‘Join’. Right click on the geometry layer and click on Properties in the contextual menu. In that menu select the Joins and click the green plus sign to add a join.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*EORz5bLpZ-V6JPSbCAR0ww.png" /><figcaption>joiny, join, join</figcaption></figure><p>Joins require a common field, or column, in the two data tables to be joined. That way the machine knows which row from one table joins onto which row in the other. We are using the Postal Area geography and the common field will be postal area code — POA_CODE — or some derivative of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*qEsv83ZEjK2y9zaQ5Wq7Hg.png" /><figcaption>The memory is virtual.</figcaption></figure><p>We now have data and geometry and we have connected them. All we have to do is style the geometry display colours by the data and we will have something useful. In the properties menu for the geometry layer click on the Style menu. Instead of ‘Single Symbol’ select graduated which will allow you to style the geometry dependent on some field. Choose a field from the drop down menu (I chose Average_household_size) and select ‘Natural Breaks (Jenks)’ in the mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*syVF2K1HPnMhKQ0StOmX3g.png" /></figure><p>Click apply and zoom to Sydney to see what you can see.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*ikezTZpZLrcAAWXytHJahg.png" /><figcaption>Big families in the west and the north, small families in the middle.</figcaption></figure><p>Immediately you can see that Parramatta currently has a very different demographic character to the Eastern CBD. But let’s look at what income has been doing from 2011 to 2016 across Sydney.</p><p>We have the 2016 data loaded already, so all we need to do is load the 2011 data. Follow the exact same steps of loading the 2016 CSV but instead load table B02 from 2011. Add it as a join to your geometry layer — one layer can have many joins.</p><p>Having done that go back to the Style menu on the geometry layer. Notice you now have the 2016 and the 2011 fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*gJasBkfNBUbIHOUBJgvLUg.png" /><figcaption>The fields</figcaption></figure><p>QGIS supports expressions in the Column option. To add an expression click on the little backwards ‘3’ which is an epsilon and I think stands for expression, but in Greek. This takes you to the ‘Expression dialog’. In the menu expand the ‘Fields and Values’ dropdown to see what fields you can use in and expression. Double clicking on one adds it to expression in the right format (enclosed in double quotes). The expression syntax is very straightforward. I want to see the difference in income between 2016 and 2011 as a percentage of 2011 income. Something like:</p><blockquote>(“inc_2016”-”inc_2011&quot;)/”inc_2011&quot;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PCgDNBz5IHZHE_vtCjyz9g.png" /><figcaption>I tried tot prsnl inc.</figcaption></figure><p>Once you have added the expression you can change the colours and number of classes to try and tell the story. Once I fiddled around a little I got this map, which shows the percentage growth of median weekly personal income.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*L8BlsLn6ZjcsUmOflx6-RQ.png" /><figcaption>Dark orange is above 22% income growth, blue is below 15% and light orange is in between</figcaption></figure><p>The darker orange pools are areas of strong income growth, and the blue is where income growth has been meagre. There is definitely a story of gentrification of the not so inner West, from Marrickville through Earlwood to Flemington Park, in the North from Balgowlah and Beacon Hill, and Botany, Chifley and Little Bay in the South. My suspicion is that the already gentrified areas — Summer Hill, Manly, Coogee and Maroubra — are spreading out. It is interesting that 2 of these areas are not on rail lines. These are all feeder suburbs to the jobs of the (Eastern) CBD and indeed lie within the blue blob that is the GSC’s Eastern City.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*whwYBj3f-bRxPO9NLkXOfQ.jpeg" /></figure><p>Parramatta itself has seen a rapid increase in income as have Ermington and Auburn. This might suggest the GSC has a trend on their side, and that Parramatta is creating more higher paid jobs and becoming a strong CBD, but my understanding is that when you look at the Opal Card Data, Parramatta is a dormitory suburb for the CBD. This is almost certainly true of Auburn as well. The story is not entirely negative though — incomes are growing in the West.</p><p>Interestingly students have seen no income growth at all, if Chippendale and the UNSW precinct are representative. This matches my understanding of labour market conditions for young people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a7352802b0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital design models]]></title>
            <link>https://medium.com/@rob.asher/digital-design-models-6f7d982138aa?source=rss-3650e3d7900a------2</link>
            <guid isPermaLink="false">https://medium.com/p/6f7d982138aa</guid>
            <category><![CDATA[bim]]></category>
            <category><![CDATA[parametric-design]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[rob asher]]></dc:creator>
            <pubDate>Thu, 20 Jul 2017 00:55:49 GMT</pubDate>
            <atom:updated>2018-04-14T09:48:29.659Z</atom:updated>
            <content:encoded><![CDATA[<p>Currently digital design takes place almost entirely inside large, monolithic applications— Revit, Archicad — that do everything. There are clear reasons:</p><ol><li>Learning any application is hard because it is large, so it best to keep staff on one package where they are knowledgeable and work efficiently.</li><li>Each application stores data in a proprietary format and translating from one to another is hard, and also destroys information.</li><li>Pricing models encourage scale — both in magnitude of licenses purchased, and also how long they are purchased for. (Adobe’s monthly billing system hasn’t yet penetrated this market, as far as I am aware.)</li><li>Whilst the monolithic apps are always limited, creating your own application is <em>very</em> hard, so you have to buy at least one and given reason 1 and 2, that app should do as close to everything as possible.</li></ol><p>The monolithic applications are extremely lucrative products and anyone who seeks to take market share off them will have to negate at least one of the 4 reasons firms decide to invest in them.</p><p>Rhino/Grasshopper was wildly successful because it negated reason 4. Grasshopper lowered the barrier to creating a single feature. If you wanted a simple facade panelization that wasn’t offered in Revit or Archicad you could cheaply and easily create one in Grasshopper. Since an application is just a collection of features, any firm that created and saved Grasshopper scripts in an organized fashion (though almost no firms do this) would — cheaply and almost unnoticed — create their own applications. Since Rhino is so cheap, and Grasshopper is so free, reason 3 lost its potency. But Rhino doesn’t do architectural documentation well and so it has never managed to become the only application in an architectural office.</p><p><a href="https://flux.io/">Flux.io</a>, noticing that the Rhino/Grasshopper was so compelling for reason 4 and that the incumbents would never negate reason 2 themselves (as that would lower their attractiveness) decided to step into this void left by the market. Flux translates any format to any format effortlessly. But there are some problems with focusing on reason 2:</p><ol><li>A firm still need the original applications to create the data, and whilst Flux is cheap it remains parasitic on expensive applications.</li><li>Flux is predicated on firms using at least 2 monolithic applications internally, or it becomes an interoffice collaboration platform. Interoffice collaboration is one of those things which belongs to no one except techs, so getting institutional buy in for a product that does only that — especially given a single collaboration requires 2 sales events — is difficult. It will become easier at the point that total market saturation is achieved, but how do you get there?</li><li>Flux is cheap to replicate. Archicad created a plugin for Grasshopper that allows firms that use Archicad to use it with Rhino/Grasshopper as though it was one package. This almost fully destroys Flux’s offering for an Archicad firm.</li></ol><p>Flux is likely moving toward negating reason 4 with its flow app, but given how far away from Grasshopper or even Dynamo they are this is unlikely to become a competitive edge.</p><p>I think that the most compelling value proposition and competitive advantage for Flux would be to negate reason 1. Since Flux is browser based it enables one to extract small pieces of functionality and expose small parts of a BIM in the browser using all the tools available in the browser. The BIM is seen as a db or a server interfacing with a series of small, specialized apps rather than a single ‘BIM file’ that interfaces with a single app. For example, an app may allow clients to change carpet and paint colors— in the BIM directly — without realizing that they are doing BIM and without having to learn very much at all. As the suite of apps that interface with a BIM grow the need for a monolithic application shrinks and so do the number of licences purchased.</p><p>This is where Flux will likely go if they want to grow their product. The Flux app store concept is the start of this process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f7d982138aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>