<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Suprageography</title>
	<atom:link href="http://oliverobrien.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://oliverobrien.co.uk</link>
	<description>Oliver O&#039;Brien, UCL CASA. Digital cartography and data visualisation.</description>
	<lastBuildDate>Tue, 15 May 2012 12:51:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>NYC&#8217;s Bike Share Approaches</title>
		<link>http://oliverobrien.co.uk/2012/05/nycs-bike-share-approaches/</link>
		<comments>http://oliverobrien.co.uk/2012/05/nycs-bike-share-approaches/#comments</comments>
		<pubDate>Mon, 14 May 2012 13:24:27 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Bike Share]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2343</guid>
		<description><![CDATA[New York City last week released a preliminary map showing the proposed sites for the launch of its bike sharing scheme, now named Citi Bike (with Citigroup being the lead sponsor along with Mastercard). Citigroup&#8217;s sponsorship is crucial for the &#8230; <a href="http://oliverobrien.co.uk/2012/05/nycs-bike-share-approaches/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/files/2012/05/nyc.png" alt="" title="nyc" width="565" height="767" class="aligncenter size-full wp-image-2346" /></p>
<p>New York City last week released <a href="http://a841-tfpweb.nyc.gov/bikeshare/">a preliminary map</a> showing the proposed sites for the launch of its bike sharing scheme, now named <a href="http://citibikenyc.com/">Citi Bike</a> (with Citigroup being the lead sponsor along with Mastercard). </p>
<p><img src="/files/2012/05/citybike.jpg" alt="" title="citybike" width="450" height="170" class="alignright size-full wp-image-2351" />Citigroup&#8217;s sponsorship is crucial for the scheme, which has promised no public subsidy on at least operating costs, and is a rather convenient sponsor in terms of its name. In several other cities around the world, their bike share schemes are known as City Bikes, such as <a href="http://www.citybikes.se/en/">Stockholm</a> and <a href="http://www.citybikewien.at/">Vienna</a>, so Citi Bike has a good chance of becoming the &#8220;on the street&#8221; name for the scheme, unlike the unwieldy &#8220;Barclays Cycle Hire&#8221; name we have here in London &#8211; most people here know them as the snappier, if politically incorrect &#8220;Boris Bikes&#8221;.</p>
<p>NYC&#8217;s scheme is clearly influenced by London&#8217;s &#8211; its of a similar size, it has a big sponsor from financial services and a mayor fully behind it, and a Boris Bike from London even appears on the front cover of the <a href="http://a841-tfpweb.nyc.gov/bikeshare/files/2012/04/Bike_Share_English.pdf">NYC DOT presentation to communities</a>. The technology used is the same and the bikes are also the same design. </p>
<p>I&#8217;ve extracted the data from the official map and <a href="http://bikes.oobrien.com/?city=newyork">added it to my own set of maps for 50+ bike share cities across the world</a> allowing for a direct comparison between the scheme and the existing ones. The initial map has 413 stands &#8211; the districts either side of Central Park are missing, as is central Brooklyn, as these areas are still undergoing consultation and will gain coverage next year. <a href="http://a841-tfpweb.nyc.gov/bikeshare/files/2012/05/deployment-20120510.pdf">The scheme should be opening this summer</a> and is then due to expand by 50% by Autumn 2013.</p>
<p>The stand sizes and descriptions are also from the official map, and I&#8217;ve simulated the empty/full status of each stand, based on the distance from Wall Street and random perturbation. This results in just under 7000 bikes, based on a roughly 1:1 empty to occupied stand ratio, which is fairly standard around the world.<a name='versus'></a></p>
<h2>New York vs London</h2>
<table>
<tr>
<th></th>
<th>New York</th>
<th>London</th>
</tr>
<tr>
<th>System Name</th>
<td>Citi Bikes</td>
<td>Barclays Cycle Hire</td>
</tr>
<tr>
<th>Bicycle design</th>
<td>Alta Bicycle Share</td>
<td>Alta Bicycle Share</td>
</tr>
<tr>
<th>Operator</th>
<td>Alta Bicycle Share</td>
<td>Serco</td>
</tr>
<tr>
<th>Lead sponsor deal</th>
<td>$41m over 5 years</td>
<td>£25m ($40m) over 5 years</td>
</tr>
<tr>
<th>Bikes (at launch)</th>
<td>7000*</td>
<td>4200</td>
</tr>
<tr>
<th>Docks (at launch)</th>
<td>13639</td>
<td>7685</td>
</tr>
<tr>
<th>Stations (at launch)</th>
<td>413</td>
<td>345</td>
</tr>
<tr>
<th>Largest station size</th>
<td>128</td>
<td>126</td>
</tr>
<tr>
<th>Average station size</th>
<td>33</td>
<td>19</td>
</tr>
<tr>
<th>Ratio bike:docks</th>
<td>1:1.95</td>
<td>1:1.83</td>
</tr>
<tr>
<th>System footprint (at launch)</th>
<td>53 km<sup>2</sup></td>
<td>42 km<sup>2</sup></td>
</tr>
<tr>
<th>Annual membership</th>
<td>$95</td>
<td>£45 ($72)</td>
</tr>
<tr>
<th>24 hour membership</th>
<td>$4</td>
<td>£1 ($1.60)</td>
</tr>
<tr>
<th>Max free journey time (24h mmbr)</th>
<td>30 minutes</td>
<td>30 minutes</td>
</tr>
<tr>
<th>Max free journey time (annual mmbr)</th>
<td>45 minutes</td>
<td>30 minutes</td>
</tr>
<tr>
<th>Single metro journey (smartcard)</th>
<td>$2.25</td>
<td>£2** ($3.20)</td>
</tr>
<tr>
<th>Single metro journey (cash)</th>
<td>$2.50</td>
<td>£4.30 ($6.90)</td>
</tr>
</table>
<p>* Announced figure. Actual figure may be less due to bikes in maintenance and temporary storage. London&#8217;s equivalent figure was 6000 bikes. ** Zone 1 only. Cost higher if travelling to Zone 2 (which has bike share bikes in it). Cost lower if only in Zone 2.</p>
<p>What stands out for me, when comparing <a href="http://bikes.oobrien.com/?city=newyork">New York</a>&#8216;s and <a href="http://bikes.oobrien.com/">London</a>&#8216;s bike share schemes, which are roughly similar in terms of number of bikes and stands, is that NY&#8217;s footprint is similar in size to London&#8217;s at launch , but with many more bikes, and the scheme is accordingly more dense. Certainly, New York will have the critical mass of stand locations, so allow the scheme to work efficiently &#8211; you&#8217;ll never have to travel very far, if your destination stand is full, to find another one. </p>
<p>The other thing that strikes me is that all the stands are quite big &#8211; very few of them have less than 20 docks. The biggest, on Pershing Square (by Grand Central Station) has 128 docks &#8211; this is ever so slightly larger than our own &#8220;superdock&#8221; at Waterloo Station and presumably designed with a similar purpose of satisfying the commuter &#8220;tide&#8221;. The other big commuter station in NYC, Penn Station, has three large docks surrounding it. The coverage is also fairly uniform, my only surprise is that there are only two docks in Battery City, which is surely full of people likely to use the scheme &#8211; or perhaps they just walk to work? Also there are none in Central Park &#8211; although perhaps these will be included in the Upper East/Upper West areas for next year&#8217;s expansion?</p>
<p>One big difference is the fee structure &#8211; at $10 a day but only $95 a year, this suggests that tourists and public-transport-based commuters are the target users, rather than local residents and errand users. This is a pity &#8211; the latter group tends have more heterogenous usage flows and help &#8220;mix&#8221; the scheme up and redistribute it organically, requiring less redistribution of bikes trucks by the operator. </p>
<p>$10 is four times more than the cost of the New York subway ($2.50/trip with Metrocard) so you would need to do at least four journeys a day to save money. In London, our tube in Zone 1 is £2 per journey with Oystercard) or £1 a day on the Boris Bikes. So end up often using the latter simply on cost, even for one journey. The over-30-minute journey extra cost is also significantly more &#8211; $4 compared with £1 here. Subscribers get 45 minutes free rather than 30 minutes. This gives those commuters a chance to travel further in the busy rush hour &#8211; although surely this increase the redistribution challenge even further. </p>
<p>NYC&#8217;s CitiBikes are thinking big, and the design of the scheme suggests that it is expected to be wildly successful at launch. Hopefully this will prove to be the case!</p>
<p>You can see my map <a href="http://bikes.oobrien.com/?city=newyork">here</a>.</p>
<p><img src="/files/2012/05/IMG_0042.jpg" alt="" title="IMG_0042" width="420" height="280" class="aligncenter size-full wp-image-2353" /></p>
<p><i>Photo credit: Edward Reed / NYC Mayor&#8217;s Office</i></p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/05/nycs-bike-share-approaches/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WhereCampEU 2012</title>
		<link>http://oliverobrien.co.uk/2012/05/wherecampeu-2012/</link>
		<comments>http://oliverobrien.co.uk/2012/05/wherecampeu-2012/#comments</comments>
		<pubDate>Tue, 08 May 2012 13:56:49 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Conferences]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2327</guid>
		<description><![CDATA[I was at the third WhereCampEU &#8220;unconference&#8221; which took place in Amsterdam over the last weekend of April, following previous editions in London and Berlin which I was also at. The meeting was an ideal opportunity for me to feature &#8230; <a href="http://oliverobrien.co.uk/2012/05/wherecampeu-2012/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/files/2012/05/wherecamposmgb.jpg" alt="" title="wherecamposmgb" width="565" height="501" class="aligncenter size-full wp-image-2333" /></p>
<p>I was at the third WhereCampEU &#8220;unconference&#8221; which took place in Amsterdam over the last weekend of April, following previous editions in London and Berlin which I was also at. The meeting was an ideal opportunity for me to feature <a href="http://citydashboard.org/">CityDashboard</a> which I unveiled at the CASA Smart Cities conference a week before, and to show a couple of the items that were popular at the exhibition that accompanied Smart Cities &#8211; namely the London Data Table and PigeonSim.</p>
<p>Amsterdam proved to be a challenging city (financially) to visit for the conference, as it was the weekend before Queen&#8217;s Day &#8211; which is essentially a massive party throughout central Amsterdam, resulting in expensive transport to get there and all the central hotels being booked up or extremely pricy. So it was that I ended up on the outskirts of the city, overlooking a motorway, although this did mean I got to use the very fast and efficient metro service into town each day. Pre-conference drinks were held upstairs in <a href="http://en.wikipedia.org/wiki/Waag_(Amsterdam)">De Waag</a>, the oldest non-religious building in Amsterdam and a fantastically atmospheric venue. The conference venue was a short walk from here. </p>
<p>To get to Amsterdam I took the Eurostar to Brussels, spent an hour and a half cycling around the city on one of the Villo bike-share bikes, and then got another high-speed train to Amsterdam. A nice way to see the countryside, but it did take six hours in total. My return was a 40-minute flight.</p>
<p><img src="/files/2012/05/wherecamppostits.jpg" alt="" title="wherecamppostits" width="400" height="515" class="alignright size-full wp-image-2334" />Unconferences have no set speaker schedule, but instead participants put a post-it note with their talk title on a grid of times and rooms, and everyone looks at the grid to determine what to go to next. The plan had been to present early on the Saturday and then just relax and enjoy the rest of the meeting, but the Saturday grid was very quickly full, and it wasn&#8217;t until Sunday lunchtime that I was able to squeeze in my talk. Although 26 minutes of my 30 minute slot was spent on CityDashboard, most of the tweeted photos were of PigeonSim (that I squeezed in the last four minutes) and my attempts at demonstrating the flying gestures&#8230;</p>
<p>There was as usual a wide range of geo and tech talks, one of the most unusual being a psychogeography session with Tim Waters &#8211; this unexpectedly involved a practical where we went out in groups and followed and observed pedestrians going about their business (an initial &#8220;meta&#8221; idea to follow the followers having been vetoed by Tim). I also enjoyed Jeremy Morley&#8217;s update on the OSM-GB project at Nottingham to quantify the quality of OpenStreetMap in the UK, and Peter Miller&#8217;s peek at a 2.5D rendering of OSM data. Peter also showed behind the scenes of ITO Map&#8217;s map layer scripts, these produce simple overlays highlighting particular OpenStreetMap content &#8211; these were the inspiration for similar functionality I incorporated into <a href="http://gemma.casa.ucl.ac.uk/">GEMMA</a>. Finally, a short Geo-yoga (mimicing the shapes of countries) session was certainly an eye-opener. Parallel sessions meant I missed some more interesting talks, including one from Google on why Google can work with OSM. </p>
<p>Thanks to all the organisers for putting on another excellent, and free, WhereCampEU!</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/05/wherecampeu-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modal Council Tax Bands in England</title>
		<link>http://oliverobrien.co.uk/2012/05/modal-council-tax-bands-in-england/</link>
		<comments>http://oliverobrien.co.uk/2012/05/modal-council-tax-bands-in-england/#comments</comments>
		<pubDate>Tue, 01 May 2012 12:23:46 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Geodemographics]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2318</guid>
		<description><![CDATA[Here&#8217;s a map of England, overlaid on it is a choropleth map showing the modal (i.e most common) council tax band within each Census Output Area (OA) in England, based on March 2011 data released by the Office of National &#8230; <a href="http://oliverobrien.co.uk/2012/05/modal-council-tax-bands-in-england/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/files/2012/05/england_counciltax.png" alt="" title="england_counciltax" width="565" height="566" class="aligncenter size-full wp-image-2319" /></p>
<p><a href="http://maptube.org/map.aspx?m=gm&#038;s=DHxSogRIXLGlJgA8EYHAplwcCnNsChWd">Here&#8217;s a map</a> of England, overlaid on it is a choropleth map showing the modal (i.e most common) council tax band within each Census Output Area (OA) in England, based on March 2011 data released by the <a href="http://www.neighbourhood.statistics.gov.uk/dissemination/LeadHome.do">Office of National Statistics</a> and <a href="http://data.gov.uk/dataset/dwelling_stock_by_council_tax_band">listed on data.gov.uk</a>. </p>
<p>I&#8217;m using a manually created colour ramp instead of a &#8220;standard&#8221; (i.e. ColorBrewer) diverging or sequential ramp, to emphasise the outliers (the big, expensive Band H houses and the small, cheap Band A ones) and try and reduce the &#8220;patchwork quilt&#8221; effect that you get when looking at such a map (which has nearly 170000 areas.) Another way to minimise this effect would have been to use larger geographies (LSOAs and MSOAs) at the smaller scales.</p>
<p>The map shows a swathe of light blue Band A housing across the north of England, and in Birmingham. In London, generally this doesn&#8217;t happen, and indeed a band of very large, expensive houses, protrudes from the affluant commuter belt right into the centre of London, from the south-west and north.</p>
<p>The map was created using UCL CASA&#8217;s <a href="http://maptube.org/">MapTube</a>, with a CSV file, descriptor file and stylesheet being the inputs. Welsh council tax bands use a different scale so are not included here. The Scotland/N.I. data is not available through the ONS website.</p>
<p>A gotcha when producing this map is that the file uses the new (2011) identifiers for OAs. Thankfully I found a file that maps the old to the new ones, although it took a bit of sleuthing to <a href="http://www.ons.gov.uk/ons/guide-method/geography/geographic-policy/coding-and-naming-for-statistical-geographies/chd-look-ups/statistical-building-block-geography/index.html">find it on the ONS website</a>.</p>
<p>A zoomable, explorable version of the map <a href="http://maptube.org/map.aspx?m=gm&#038;s=DHxSogRIXLGlJgA8EYHAplwcCnNsChWd">is available.</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/05/modal-council-tax-bands-in-england/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The London Data Table</title>
		<link>http://oliverobrien.co.uk/2012/04/the-london-data-table/</link>
		<comments>http://oliverobrien.co.uk/2012/04/the-london-data-table/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 12:14:16 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Data Graphics]]></category>
		<category><![CDATA[London]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2294</guid>
		<description><![CDATA[The London Data Table was one of my personal favourites from the exhibition accompanying the CASA &#8220;Smart Cities&#8221; conference which took place at the University of London last Friday. The concept was thought up by Steven Gray and it consists &#8230; <a href="http://oliverobrien.co.uk/2012/04/the-london-data-table/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/files/2012/04/londondatatable2.jpg" alt="" title="londondatatable2" width="565" height="393" class="aligncenter size-full wp-image-2302" /></p>
<p>The London Data Table was one of my personal favourites from the exhibition accompanying the CASA &#8220;Smart Cities&#8221; conference which took place at the University of London last Friday. The concept was thought up by <a href="http://www.stevenjamesgray.com/">Steven Gray</a> and it consists of a wooden table, cut by programmable lathe into the outline of London. A special &#8220;short throw&#8221; projector with a fish-eye lens was purchased. It was mounted vertically on a converted basketball hoop stand, pointing downwards and outwards, allowing the content to be approached and examined without the projector getting in the way. Steven has <a href="http://bigdatatoolkit.org/2012/04/26/london-data-table/">blogged about the construction process</a>.</p>
<p>I created a generic dark grey background map (from <a href="http://www.ordnancesurvey.co.uk/oswebsite/products/os-opendata.html">Ordnance Survey OpenData</a>) with a blue River Thames as the main identifying feature. This was used by several authors, including myself, to create either <a href="http://processing.org/">Processing</a> &#8220;sketches&#8221; in Java, or pre-recorded videos, which were displayed on the table during the exhibition. A simple Javascript script running on Node.JS was written to automatically cycle through the animations. </p>
<p>By ensuring that the background map and accompanying sketches/videos where &#8220;pixel perfect&#8221;, we were able to take advantage of  having control of every individual pixel, producing the quite pleasing pixellated effect as seen in the below closeup of one of the sketches (a photo taken of a part of the table) &#8211; it is showing a bike share station animation that I created, based on the same data that powers <a href="http://bikes.oobrien.com/timeline.php">the equivalent website</a>.</p>
<p>The photo above shows the table running another Processing sketch, showing point information from <a href="http://citydashboard.org/london/">CityDashboard</a> and similar to the <a href="http://citydashboard.org/london/map/">map view</a> on the website, except that points are randomly and automatically selected to be displayed, as people stand beside and watch the table.</p>
<p><img src="/files/2012/04/qrflights_edit.jpg" alt="" title="qrflights_edit" width="400" height="303" class="alignright size-full wp-image-2315" />The most interesting sketch presented on the table (and shown on the right &#8211; photo by Helen) was built by Steven Gray and connected to a airplane sensor box, that picked up near-real-time broadcasts of location, speed and aircraft ID, of planes flying over London. The sketch stored recently received information, and so was able to project little images of plans, orientated correctly and with trails showing their recent path. Attached to each plane image was a a readout of height and speed, and most innovatively of all, a <a href="http://en.wikipedia.org/wiki/QR_code">QR code</a> was programmatically generated and rendered behind each plane, allowing smartphone users to scan it. QR codes are normally encoded URLs, and these ones were set to point to a flight information website, with the aircraft&#8217;s details preloaded, showing a photo, and the origin and destination at a glance.</p>
<p>The QR codes were able to be made very small &#8211; using a single projector pixel per QR code pixel and little error correction. Various smoothing and blurring digital effects having been switched off, and a digital connection between computer and projector used, to allow the sharpest possible representation. As a result, my iPhone was able to tell me more about the planes I was seeing fly, in near real time, around the table.</p>
<p><img src="/files/2012/04/londondatatable1.jpg" alt="" title="londondatatable1" width="565" height="434" class="aligncenter size-full wp-image-2303" /></p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/04/the-london-data-table/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>On Colour Ramps and City Dashboards</title>
		<link>http://oliverobrien.co.uk/2012/04/on-colour-ramps-and-city-dashboards/</link>
		<comments>http://oliverobrien.co.uk/2012/04/on-colour-ramps-and-city-dashboards/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 12:40:25 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Data Graphics]]></category>
		<category><![CDATA[London]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2270</guid>
		<description><![CDATA[Here are the colour ramps I am using for numeric measures in the recently launched CityDashboard (which by the way now has a new URL &#8211; http://citydashboard.org/): The colours have been designed to be clearly distinguishable from the white text &#8230; <a href="http://oliverobrien.co.uk/2012/04/on-colour-ramps-and-city-dashboards/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here are the colour ramps I am using for numeric measures in the recently launched CityDashboard (which by the way now has a new URL &#8211; <a href="http://citydashboard.org/">http://citydashboard.org/</a>):</p>
<p><img src="/files/2012/04/citydashboardcolours.png" alt="" title="citydashboardcolours" width="565" height="366" class="aligncenter size-full wp-image-2299" /></p>
<p>The colours have been designed to be clearly distinguishable from the white text that is on top of them.</p>
<p>Here is the PHP code that I&#8217;m using to choose the appropriate colour for each measure, and which I also used to produce the above ramps &#8211; the reverse colour and bad value handling is only implemented where I currently needed, ideally these would be implemented for all the ramps:</p>
<style>pre { font-size: 10px; } </style>
<pre>
$na_rgb = 128;

function getGreyRedHex($val, $min, $max, $reverse=false, $processing=false)
{
	$val_0_255 = getNormalisedVal($val, $min, $max);
	$r = 128 + 0.5*intval($val_0_255);
	$g = 128 - 0.5*intval($val_0_255);
	$b = 128 - 0.5*intval($val_0_255);
	return getHex($r, $g, $b, $processing);
}

function getGreyBlueHex($val, $min, $max, $reverse=false, $processing=false)
{
	$val_0_255 = getNormalisedVal($val, $min, $max);
	$r = 128 - 0.5*intval($val_0_255);
	$g = 128 - 0.5*intval($val_0_255);
	$b = 128 + 0.5*intval($val_0_255);
	return getHex($r, $g, $b, $processing);
}

function getColdWarmHex($val, $min, $max, $reverse=false, $processing=false)
{
	$val_0_255 = getNormalisedVal($val, $min, $max);
	$r = intval($val_0_255);
	$g = 255 - 2*abs(127.5 - $r);
	$b = 255 - $r;
	if ($reverse)
	{
		$r_temp = $r;
		$r = $b;
		$b = $r_temp;
	}
	return getHex(0.8*$r, 0.8*$g, 0.8*$b, $processing);
}

function getGreenYellowRedHex($val, $min, $max, $reverse=false, $processing=false)
{
	global $na_rgb;
	if ($val === "n/a") { return getHex($na_rgb, $na_rgb, $na_rgb, $processing); }
	if ($val === "?") { return getHex($na_rgb, $na_rgb, $na_rgb, $processing); }
	$val_0_255 = getNormalisedVal($val, $min, $max);
	$r = intval($val_0_255);
	$g = 255 - intval($val_0_255);
	if ($g > 128) { $g = 128; }
	$b = 0;
	return getHex($r, $g, $b, $processing);
}

function getRedGreyGreenHex($val, $min, $max, $reverse=false, $processing=false)
{
	global $na_rgb;
	if ($val === "n/a") { return getHex($na_rgb, $na_rgb, $na_rgb, $processing); }
	$val_0_255 = getNormalisedVal($val, $min, $max);
	$r = 255 - intval($val_0_255);
	$g = intval($val_0_255);
	if ($g > 128) { $g = 128; }
	$b = 128 - abs(127.5 - $val_0_255);
	return getHex($r, $g, $b, $processing);
}

function getNormalisedVal($val, $min, $max)
{
	if ($val < $min) { $val = $min; }
	if ($val > $max) { $val = $max;	}
	$range = $max - $min;
	return ($val - $min)*(255/$range);
}

function getHex($r, $g, $b, $processing)
{
	$hex = str_pad(dechex($r), 2, "0", STR_PAD_LEFT)
		. str_pad(dechex($g), 2, "0", STR_PAD_LEFT)
		. str_pad(dechex($b), 2, "0", STR_PAD_LEFT);

	if ($processing) { return "FF" . $hex; }
	else { return "#" . $hex; }
}
</pre>
<p>I&#8217;ll be presenting CityDashboard at the forthcoming Wherecamp EU unconference which is taking place in Amsterdam this weekend.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/04/on-colour-ramps-and-city-dashboards/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CityDashboard</title>
		<link>http://oliverobrien.co.uk/2012/04/citydashboard/</link>
		<comments>http://oliverobrien.co.uk/2012/04/citydashboard/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 11:39:16 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Data Graphics]]></category>
		<category><![CDATA[London]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2252</guid>
		<description><![CDATA[CityDashboard is the main project that I have been working on for the last few months. It aims to summarise quantitative data (both officially provided and crowd-sourced) for the major UK cities, in a single screen. Point data is also &#8230; <a href="http://oliverobrien.co.uk/2012/04/citydashboard/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/files/2012/04/citydbscreen.png" alt="" title="citydbscreen" width="640" height="489" class="aligncenter size-full wp-image-2253" /></p>
<p>CityDashboard is the main project that I have been working on for the last few months. It aims to summarise quantitative data (both officially provided and crowd-sourced) for the major UK cities, in a single screen. Point data is also shown in an alternate map view.</p>
<p>It was launched at the <a href="http://www.bartlett.ucl.ac.uk/bartlett/casa/events/2012-04-20-Conference">CASA Smart Cities conference</a> last Friday, for eight cities &#8211; London, Cardiff, Edinburgh, Glasgow, Manchester, Leeds, Birmingham and Newcastle. London has the most dashboard &#8220;modules&#8221; at present, with a number of London-specific modules from Transport for London, the Port of London Authority, and CASA&#8217;s own sensors. Other cities have several more generic modules (such as weather and Twitter trends) and more city-specific modules will be added to these in due course. I am also looking at improving the overall look and feel of the website, possibly by using the <a href="http://www.bbc.co.uk/glow/">BBC Glow</a> API that was suggested to me at the conference (but just now took me half an hour to find on the web!)</p>
<p><img src="/files/2012/04/citydbtwitter.png" alt="" title="citydbtwitter" width="400" height="347" class="alignright size-full wp-image-2260" />CityDashboard features specially curated Twitter lists. For each city, there is a general news list, featuring tweets from local newspapers, local correspondents for the BBC and other TV and radio channels, tourist organisations and the official accounts for the relevant local authorities. There is also a universities list, with the official Twitter accounts for the main universities in each city, as well as their student unions. It is hoped that this latter list with detail the latest university research outputs, coming out of that city. The account that manages the lists is <a href="http://twitter.com/citydb">CityDB</a> and the lists take the form of, for example, <a href="http://twitter.com/citydb/london">http://twitter.com/citydb/london</a> and <a href="http://twitter.com/citydb/london-uni">http://twitter.com/citydb/london-uni</a>. Anyone can subscribe to these lists, you don&#8217;t have to only view them through CityDashboard.</p>
<p>You can visit CityDashboard live, right now, at <a href="http://citydashboard.org/">http://citydashboard.org/</a></p>
<p>The project is an output of <a href="http://drupals.humanities.manchester.ac.uk/neiss3/">NeISS</a>, which is funded by <a href="http://www.jisc.ac.uk/">JISC</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/04/citydashboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CASA Smart Cities</title>
		<link>http://oliverobrien.co.uk/2012/04/casa-smart-cities/</link>
		<comments>http://oliverobrien.co.uk/2012/04/casa-smart-cities/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 13:13:43 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[London]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2238</guid>
		<description><![CDATA[[Updated x2] Just a note to say that I will be presenting some of my work, at the CASA Smart Cities free one-day conference. Over 200 tickets have already gone, but there are, at the time of writing, a few &#8230; <a href="http://oliverobrien.co.uk/2012/04/casa-smart-cities/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/files/2012/04/casasc_fguide.png" alt="" title="casasc_fguide" width="640" height="170" class="aligncenter size-full wp-image-2244" /></p>
<p>[<b>Updated x2</b>] Just a note to say that I will be presenting some of my work, at the <a href="http://www.bartlett.ucl.ac.uk/casa/events/2012-04-20-Conference">CASA Smart Cities</a> free one-day conference. Over 200 tickets have already gone, but <a href="http://casasmartcities.eventbrite.co.uk/">there are, at the time of writing, a few left</a>.</p>
<p>There will be an exhibition at the conference, some people in the department have been building some very cool things which will be unveiled there. Unfortunately I&#8217;m not allowed to talk about the very coolest one of all, but I have been allowed to post the above graphic which has got something to do with it&#8230; </p>
<p>(If you want to have a guess at what it is, leave a comment!)</p>
<p>[<b>Update 3/4</b> - Tickets are sold out, however I think an extra batch will be available soon.]<br />
[<b>Update 13/4</b> - A few more tickets now available.]</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/04/casa-smart-cities/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>So How Big Was the Big London Bike Share Expansion?</title>
		<link>http://oliverobrien.co.uk/2012/03/so-how-big-was-the-london-bike-share-expansion/</link>
		<comments>http://oliverobrien.co.uk/2012/03/so-how-big-was-the-london-bike-share-expansion/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 12:07:38 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Bike Share]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2226</guid>
		<description><![CDATA[As planned, Tower Hamlets (east London) and Shepherd&#8217;s Bush (west London) saw a big expansion of bike share docking stations, overnight last Wednesday night. There&#8217;s also been some incremental additions to the existing zone, and a build-out of Camden Town &#8230; <a href="http://oliverobrien.co.uk/2012/03/so-how-big-was-the-london-bike-share-expansion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="/files/2012/03/bbeast.jpg" alt="" title="bbeast" width="568" height="632" class="aligncenter size-full wp-image-2233" /></p>
<p>As planned, Tower Hamlets (east London) and Shepherd&#8217;s Bush (west London) saw a big expansion of bike share docking stations, overnight last Wednesday night. There&#8217;s also been some incremental additions to the existing zone, and a build-out of Camden Town in the days leading to the &#8220;big bang&#8221; expansion. </p>
<p>So where are the new docks? As <a href="http://diamondgeezer.blogspot.com/2012/03/east-south-west-north.html">Diamond Geezer has noted</a>, the all four compass points have received new bike share docking stations recently. </p>
<p>The map below shows (in colour) the new docking stations &#8211; those that were installed since 1 January 2012, and are currently operational. The old ones are in grey.</p>
<p><a href="/files/2012/03/bbikeexpansion.png"><img src="/files/2012/03/bbikeexpansion-568x256.png" alt="" title="bbikeexpansion" width="568" height="256" class="aligncenter size-large wp-image-2227" /></a></p>
<p>The numbers:</p>
<table>
<tr>
<tr>
<th>Area</th>
<th>New Docking Stations</th>
</tr>
<tr>
<td>East</td>
<td>91</td>
</tr>
<tr>
<td>West</td>
<td>9</td>
</tr>
<tr>
<td>North</td>
<td>5</td>
</tr>
<tr>
<td>South</td>
<td>6</td>
</tr>
<tr>
<td>Central</td>
<td>27</td>
</tr>
<tr>
<td>TOTAL</td>
<td>138</td>
</tr>
</table>
<table>
<tr>
<th></th>
<th>Docking Stations</th>
<th>Stands</th>
</tr>
<tr>
<td>Old (2011-)</td>
<td>410</td>
<td>3937</td>
</tr>
<tr>
<td>New (2012+)</td>
<td>138</td>
<td>10071</td>
</tr>
<tr>
<td>TOTAL</td>
<td>548</td>
<td>14008</td>
</tr>
</table>
<p>There are a few more &#8220;ghost&#8221; docking stations that appear on the map, these are old docking stations that have been decommissioned or more new ones that were recently in testing and so appeared on the official map &#8211; TfL have promised an additional 10-15 docking stations) will go in in early April. </p>
<p><i>Background map CC-By-SA OpenStreetMap contributors.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/03/so-how-big-was-the-london-bike-share-expansion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>London Bikeshare Expanding East and West</title>
		<link>http://oliverobrien.co.uk/2012/03/london-bikeshare-expanding-east-and-west/</link>
		<comments>http://oliverobrien.co.uk/2012/03/london-bikeshare-expanding-east-and-west/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 12:50:46 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[Bike Share]]></category>
		<category><![CDATA[London]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2190</guid>
		<description><![CDATA[The Barclays Cycle Hire bikesharing system (map) in London is due for a major expansion on 8 March. Overnight on the 7th, operators will be working flat out to add 2300 1700 1900 new bikes into 4800 3000 3400 new &#8230; <a href="http://oliverobrien.co.uk/2012/03/london-bikeshare-expanding-east-and-west/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/ianvisits/6783945903/in/photostream/"><img src="/files/2012/03/6783945903_2e45320b99_z.jpg" alt="" title="6783945903_2e45320b99_z" width="640" height="427" class="aligncenter size-full wp-image-2197" /></a></p>
<p>The <a href="http://www.tfl.gov.uk/roadusers/cycling/14808.aspx">Barclays Cycle Hire</a> bikesharing system (<a href="http://bikes.oobrien.com/">map</a>) in London is due for a major expansion on 8 March. Overnight on the 7th, operators will be working flat out to add <s>2300</s> <s>1700</s> 1900 new bikes into <s>4800</s> <s>3000</s> 3400 new stands, clustered in the <s>200</s> 150 new docking stations that have been tested over the last few weeks, across the East End of London (Tower Hamlets, Shoreditch/Hackney Road and Canary Wharf). Also going live the same day will be a much smaller expansion west to the area round the Westfield shopping centre in Shepherd&#8217;s Bush in West London. Another small expansion around Camden Town has just been completed, adding several new stands to the northern tip of the system, including handily around Camden Town tube station and Camden Road train station, allowing commuters from the north and the Overground network (like me!) to <a href="http://oliverobrien.co.uk/2011/12/dont-zone-1-it-when-you-can-boris-bike-it/">avoid the expensive Zone 1 fares and Boris Bike</a> the last few kilometres to work.</p>
<p>The expansion will move London up the league table of bike share cities from 7th to 5th &#8211; in a top 20 dominated by China. It will remain the second largest system outside of China, after Paris, although New York&#8217;s planned system will be even larger:</p>
<h3>The Biggest Bike Sharing Cities (March 2012)</h3>
<table>
<tr>
<th></th>
<th>	City</th>
<th>	Country</th>
<th>Bikes<br />Mar 2012</th>
<th>Bikes<br />Nov 2011<br />(If Different)</th>
</tr>
<tr>
<td>	1	</td>
<td>	Wuhan	</td>
<td>	China	</td>
<td>	70000	</td>
<td></td>
</tr>
<tr>
<td>	2	</td>
<td>	Hangzhou	</td>
<td>	China	</td>
<td>	60600	</td>
<td></td>
</tr>
<tr>
<td>		</td>
<td>	Bejing (planned)	</td>
<td>	China	</td>
<td>	50000	</td>
<td></td>
</tr>
<tr>
<td>	3	</td>
<td>	Paris	</td>
<td>	France	</td>
<td>	18000	</td>
<td></td>
</tr>
<tr>
<td>		</td>
<td>	New York (planned)	</td>
<td>	United States	</td>
<td>	10000	</td>
<td></td>
</tr>
<tr>
<td>	4	</td>
<td>	Taizhou	</td>
<td>	China	</td>
<td>	10000	</td>
<td></td>
</tr>
<tr>
<td><b>	5</b>	</td>
<td><b>	London (8 March+)</b>	</td>
<td><b>	Great Britain</b>	</td>
<td>	<b>7200</b>	</td>
<td>5000</td>
</tr>
<tr>
<td>	6	</td>
<td>	Yantai	</td>
<td>	China	</td>
<td>	6000	</td>
<td></td>
</tr>
<tr>
<td>	7	</td>
<td>	Shanghai	</td>
<td>	China	</td>
<td>	5700	</td>
<td></td>
</tr>
<tr>
<td>		</td>
<td>	Chicago (planned)	</td>
<td>	United States	</td>
<td>	5000	</td>
<td></td>
</tr>
<tr>
<td>	8	</td>
<td>	Guangzhou	</td>
<td>	China	</td>
<td>	5000	</td>
<td></td>
</tr>
<tr>
<td>	9	</td>
<td>	Barcelona	</td>
<td>	Spain	</td>
<td>	4700	</td>
<td>4400</td>
</tr>
<tr>
<td>	10	</td>
<td>	Kaohsiung	</td>
<td>	China	</td>
<td>	4500	</td>
<td></td>
</tr>
<tr>
<td>	11	</td>
<td>	Montreal	</td>
<td>	Canada	</td>
<td>	4220*	</td>
<td></td>
</tr>
<tr>
<td>	12	</td>
<td>	Foshan	</td>
<td>	China	</td>
<td>	4000	</td>
<td></td>
</tr>
<tr>
<td>	13	</td>
<td>	Lyon	</td>
<td>	France	</td>
<td>	3400	</td>
<td>3060</td>
</tr>
<tr>
<td>	14	</td>
<td>	Zhangjiagang	</td>
<td>	China	</td>
<td>	3200	</td>
<td></td>
</tr>
<tr>
<td>	15	</td>
<td>	Munich	</td>
<td>	Germany	</td>
<td>	3000	</td>
<td></td>
</tr>
<tr>
<td>	16	</td>
<td>	Wuham/Qinshan	</td>
<td>	China	</td>
<td>	3000	</td>
<td></td>
</tr>
<tr>
<td>	17	</td>
<td>	Toulouse	</td>
<td>	France	</td>
<td>	2500	</td>
<td></td>
</tr>
<tr>
<td>	18	</td>
<td>	Brussels	</td>
<td>	Belgium	</td>
<td>	2180	</td>
<td>2060</td>
</tr>
<tr>
<td>	19	</td>
<td>	Seville	</td>
<td>	Spain	</td>
<td>	1950	</td>
<td></td>
</tr>
<tr>
<td>	20	</td>
<td>	Changshu	</td>
<td>	China	</td>
<td>	1700	</td>
<td>1440</td>
</tr>
</table>
<p>* Currently closed for winter.</p>
<p>Data sources: Scheme operator websites (through my live map), http://publicbike.net/, http://citybik.es/, http://bike-sharing.blogspot.com/, press releases/newspaper articles on new schemes, Wikipedia articles. If you are aware of any mistakes, please let me know and I will correct. Photo: <a href="http://www.flickr.com/photos/ianvisits/6783945903/in/photostream/">CC-By-NC IanVisits</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/03/london-bikeshare-expanding-east-and-west/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Extracting Feature Geometries from OpenStreetMap</title>
		<link>http://oliverobrien.co.uk/2012/02/extracting-feature-geometries-from-openstreetmap/</link>
		<comments>http://oliverobrien.co.uk/2012/02/extracting-feature-geometries-from-openstreetmap/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 16:22:16 +0000</pubDate>
		<dc:creator>Oliver O`Brien</dc:creator>
				<category><![CDATA[OpenStreetMap]]></category>

		<guid isPermaLink="false">http://ollie.blogweb.casa.ucl.ac.uk/?p=2178</guid>
		<description><![CDATA[I&#8217;ve recently been extracting some river geometries for major cities around the world. The data needs to be a list of latitude/longitude coordinates, representing the nodes on the shape for the river concerned. I&#8217;m sure there&#8217;s easier ways to do &#8230; <a href="http://oliverobrien.co.uk/2012/02/extracting-feature-geometries-from-openstreetmap/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been extracting some river geometries for major cities around the world. The data needs to be a list of latitude/longitude coordinates, representing the nodes on the shape for the river concerned.</p>
<p>I&#8217;m sure there&#8217;s easier ways to do this, but here&#8217;s my technique, shown here for Minneapolis. Click the images for larger version.</p>
<p>1. Extract the data from OpenStreetMap. Use the Export function, and draw out the area concerned with a bounding box. Choose OpenStreetMap XML as the format. I originally tried SVG, but this presents you with screen coordinates instead of latitude/longitude pairs.</p>
<p><a href="http://oliverobrien.co.uk/2012/02/extracting-feature-geometries-from-openstreetmap/minnea_step1/" rel="attachment wp-att-2180"><img src="/files/2012/02/minnea_step1-568x281.png" alt="" title="minnea_step1" width="568" height="281" class="aligncenter size-large wp-image-2180" /></a></p>
<p>2. Open the resulting file in Quantum GIS (QGIS). I used QGIS 1.9. You need the OpenStreetMap plugin installed, this will allow the OSM file that was created in Step 1 to be read straight in (in fact you could download the file directly from the OSM servers, if you wanted to). </p>
<p><a href="http://oliverobrien.co.uk/2012/02/extracting-feature-geometries-from-openstreetmap/minnea_step2/" rel="attachment wp-att-2181"><img src="/files/2012/02/minnea_step2.png" alt="" title="minnea_step2" width="548" height="369" class="aligncenter size-full wp-image-2181" /></a></p>
<p>3. Select the feature you are interested in. My river (actually a waterbank polygon) is a &#8220;hairy feature&#8221; as it extends well beyond the extent of the data that was downloaded. Make sure you are selecting it (feature turns yellow) rather than highlighting it for feature information (feature turns red). Otherwise, the subsequent file is, rather unhelpfully, blank.</p>
<p><a href="/files/2012/02/minnea_step3.png"><img src="/files/2012/02/minnea_step3-568x200.png" alt="" title="minnea_step3" width="568" height="200" class="aligncenter size-large wp-image-2182" /></a></p>
<p>4. Do Layer > Save Selection as Vector File. Choose &#8220;KML&#8221; as the format. You probably don&#8217;t need to change the coordinate reference system (CRS) as the data will already be in WGS 84, and this (&#8220;normal GPS-style latitude/longitude) is the CRS you want.</p>
<p><a href="/files/2012/02/minnea_step4.png"><img src="/files/2012/02/minnea_step4.png" alt="" title="minnea_step4" width="424" height="493" class="aligncenter size-full wp-image-2183" /></a></p>
<p>5. Edit the resulting file, removing the XML tags, and header/footer, and replace spaces with return characters, to leave a long list of latitude/longitudes, ready for importing into your visualisation code.</p>
<p><a href="/files/2012/02/minnea_step5.png"><img src="/files/2012/02/minnea_step5-568x257.png" alt="" title="minnea_step5" width="568" height="257" class="aligncenter size-large wp-image-2184" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://oliverobrien.co.uk/2012/02/extracting-feature-geometries-from-openstreetmap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

