<?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>Quantum Forest &#187; geocoded</title>
	<atom:link href="http://quantum.uncronopio.org/category/geocoded/feed/" rel="self" type="application/rss+xml" />
	<link>http://quantum.uncronopio.org</link>
	<description>logs written by Luis Apiolaza in Christchurch, New Zealand</description>
	<lastBuildDate>Sun, 10 Jan 2010 21:24:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Around Japan</title>
		<link>http://quantum.uncronopio.org/2009/08/20/around-japan/</link>
		<comments>http://quantum.uncronopio.org/2009/08/20/around-japan/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 22:14:23 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[geocoded]]></category>
		<category><![CDATA[travel]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=380</guid>
		<description><![CDATA[I will keep updating this post with the itinerary.
Monday 17: trip from Christchurch to Auckland, then from Auckland to Narita International Airport§. Nice 767 plane. This was followed by a car ride from Narita to Hitachi§.
Tuesday 18: visiting progeny trials around Hitachi, quick tour at Tree Breeding Center and first presentation on GxE interaction. Banquet [...]]]></description>
			<content:encoded><![CDATA[<p>I will keep updating this post with the itinerary.</p>
<p><strong>Monday 17:</strong> trip from Christchurch to Auckland, then from Auckland to Narita International Airport<sup><a href="http://maps.google.co.nz/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=narita+international+airport+japan&#038;sll=35.767547,140.366993&#038;sspn=0.08176,0.151062&#038;ie=UTF8&#038;ll=35.7727,140.388279&#038;spn=0.681899,1.208496&#038;z=10">§</a></sup>. Nice 767 plane. This was followed by a car ride from Narita to Hitachi<sup><a href="http://maps.google.co.nz/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=hitachi+japan&#038;sll=36.035575,140.073866&#038;sspn=1.359251,2.416992&#038;ie=UTF8&#038;ll=36.589031,140.659607&#038;spn=1.34964,2.416992&#038;z=9">§</a></sup>.</p>
<p><strong>Tuesday 18:</strong> visiting progeny trials around Hitachi, quick tour at Tree Breeding Center and first presentation on GxE interaction. Banquet as the guest of honor.</p>
<p><strong>Wednesday 19:</strong> visiting another progeny trial and seed orchard for &#8216;low pollen&#8217; Sugi varieties. Drive to Tsukuba<sup><a href="http://maps.google.co.nz/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=tsukuba+japan&#038;sll=43.092961,141.341858&#038;sspn=1.227474,2.416992&#038;ie=UTF8&#038;ll=36.035575,140.073866&#038;spn=1.359251,2.416992&#038;z=9">§</a></sup> and presentation on breeding objectives broadcasted by internet. Drive to Narita, plane from Narita to New Chitose Airport<sup><a href="http://maps.google.co.nz/?ie=UTF8&#038;ll=42.801447,141.652222&#038;spn=1.2333,2.416992&#038;z=9">§</a></sup> (Hokkaido), train to Sapporo<sup><a href="http://maps.google.co.nz/?ie=UTF8&#038;ll=43.092961,141.341858&#038;spn=1.227474,2.416992&#038;z=9">§</a></sup>.</p>
<p><strong>Thursday 20:</strong> progeny trials, clonal trials and seed orchards around Sapporo, Hokkaido.</p>
<p><img src="http://quantum.uncronopio.org/wp-content/uploads/2009/08/goingoutinsapporo.jpg" alt="GoingOutInSapporo.jpg" border="0" width="500" height="375" /></p>
<p><strong>Sapporo&#8217;s restaurant district.</strong></p>
<p><strong>Friday 21:</strong> visit silvicultural trials. Presentation about very early screening for wood quality in Sapporo. Banquet with people attending the presentation. </p>
<p><strong>Saturday 22:</strong> train from Sapporo to Chitose, flight from Chitose to Kansai airport<sup><a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=kansai+airport+japan&#038;sll=37.0625,-95.677068&#038;sspn=42.85226,77.34375&#038;ie=UTF8&#038;ll=34.434098,135.244446&#038;spn=0.699981,1.208496&#038;z=10">§</a></sup> (Osaka), train from Kansai to Kyoto<sup><a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=kyoto+station+japan&#038;sll=34.434098,135.244446&#038;sspn=0.699981,1.208496&#038;ie=UTF8&#038;ll=34.985566,135.757713&#038;spn=0.173833,0.302124&#038;z=12">§</a></sup>, subway to hotel. Visit to market, some shopping and washing my clothes.</p>
<p><img src="http://quantum.uncronopio.org/wp-content/uploads/2009/08/yoko.jpg" alt="Yoko.jpg" border="0" width="500" height="375" /></p>
<p><strong>Yoko, our friendly waitress/theology student starts bringing the food. Nice restaurant in Kyoto.</strong></p>
<p><strong>Sunday 23:</strong> Free day. Temples galore in Kyoto: Higashi Honganji, Nishi Honganji, Sanjūsangen-dō.</p>
<p><strong>Tuesday 25:</strong> Presentation in Kyoto on very early screening for wood quality. Flight from Kyoto to Kumamoto (Kyūshū)<sup><a href="http://maps.google.co.nz/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=kumamoto&#038;sll=31.907674,131.420241&#038;sspn=2.881709,4.833984&#038;g=Miyazaki+City,+Miyazaki+Prefecture,+Japan&#038;ie=UTF8&#038;ll=32.8031,130.707891&#038;spn=0.713353,1.208496&#038;z=10">§</a></sup>.</p>
<p><img src="http://quantum.uncronopio.org/wp-content/uploads/2009/08/prayers.jpg" alt="Prayers.jpg" border="0" width="500" height="350" /></p>
<p><strong>Prayers.</strong></p>
<p><strong>Wednesday 26:</strong> last presentation in Kumamoto on very early screening for wood quality (free at last!). Banquet with 15 people.</p>
<p><strong>Thursday 27:</strong> Drive from Kumamoto to Miyazaki<sup><a href="http://maps.google.co.nz/maps?f=q&#038;source=s_q&#038;hl=en&#038;q=Miyazaki+City,+Miyazaki+Prefecture,+Japan&#038;sll=-41.244772,172.617188&#038;sspn=40.59858,77.34375&#038;ie=UTF8&#038;cd=1&#038;geocode=FVrf5gEdUVDVBw&#038;split=0&#038;ll=31.907674,131.420241&#038;spn=2.881709,4.833984&#038;z=8">§</a></sup>. Visited CP progeny trial and several silvicultural experiments on the way. Flight from Miyazaki to Haneda Airport, Tokyo.</p>
<p><a href="http://gc.kls2.com/cgi-bin/gc?PATH=chc-akl%2C+akl-nrt%2C+nrt-cts%2C+cts-kix%2C+itm-kmj%2C+kmi-hnd%2C+nrt-akl%2C+akl-chc%0D%0A&#038;RANGE=&#038;PATH-COLOR=red&#038;PATH-UNITS=km&#038;PATH-MINIMUM=&#038;SPEED-GROUND=&#038;SPEED-UNITS=kts&#038;RANGE-STYLE=best&#038;RANGE-COLOR=navy&#038;MAP-STYLE="><img src="http://quantum.uncronopio.org/wp-content/uploads/2009/09/japan-circle-mapper.gif" alt="japan_circle_mapper.gif" border="0" width="481" height="241" /></a></p>
<p><strong>Another 22,000 kilometers in two weeks. This does not consider cars, trains and buses.</strong></p>
<p><strong>Friday 28:</strong> Going around Tokyo looking for presents and suffering the heat. It is a big, large, enormous city. Train to Narita airport and 7 pm Air New Zealand flight to Auckland, where I arrived the next day.</p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2009/08/20/around-japan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slide</title>
		<link>http://quantum.uncronopio.org/2009/06/01/slide/</link>
		<comments>http://quantum.uncronopio.org/2009/06/01/slide/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 08:18:21 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[geocoded]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=373</guid>
		<description><![CDATA[
It is a long way down the slide. Auckland Zoo§.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/58862990@N00/3584966158" title="View 'Slide' on Flickr.com"><img src="http://farm4.static.flickr.com/3606/3584966158_3a81cb5d63.jpg" alt="Slide" border="0" width="375" height="500" /></a></p>
<p><strong>It is a long way down the slide. Auckland Zoo<sup><a href="http://maps.google.co.nz/?ie=UTF8&#038;ll=-36.863592,174.72049&#038;spn=0.002635,0.003782&#038;t=h&#038;z=18">§</a></sup>.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2009/06/01/slide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating dynamic Google maps with Python</title>
		<link>http://quantum.uncronopio.org/2009/02/01/generating-dynamic-google-maps-with-python/</link>
		<comments>http://quantum.uncronopio.org/2009/02/01/generating-dynamic-google-maps-with-python/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 08:36:46 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[geocoded]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=361</guid>
		<description><![CDATA[As I have mentioned before, I have been putting together some dynamically generated maps for environmental information. A barebones version of my Python code to generate the KML file is:

#!/usr/bin/env python
# encoding: utf-8
&#160;
import urllib, random
&#160;
# Charting function
def lineChart&#40;data, size = '250x100'&#41;:
    baseURL = 'http://chart.apis.google.com/chart?cht=lc&#38;chs='
    baseData = '&#38;chd=t:'
   [...]]]></description>
			<content:encoded><![CDATA[<p>As I have mentioned before, I have been putting together some dynamically generated maps for environmental information. A barebones version of my Python code to generate the KML file is:</p>

<div class="wp_syntax"><div class="code"><pre class="python python" style="font-family:monospace;"><span style="color: #8ea1b0; font-style: italic;">#!/usr/bin/env python</span>
<span style="color: #8ea1b0; font-style: italic;"># encoding: utf-8</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">urllib</span>, <span style="color: #dc143c;">random</span>
&nbsp;
<span style="color: #8ea1b0; font-style: italic;"># Charting function</span>
<span style="color: #ff7700;font-weight:bold;">def</span> lineChart<span style="color: black;">&#40;</span>data, size = <span style="color: #483d8b;">'250x100'</span><span style="color: black;">&#41;</span>:
    baseURL = <span style="color: #483d8b;">'http://chart.apis.google.com/chart?cht=lc&amp;chs='</span>
    baseData = <span style="color: #483d8b;">'&amp;chd=t:'</span>
    newData = <span style="color: #483d8b;">','</span>.<span style="color: black;">join</span><span style="color: black;">&#40;</span>data<span style="color: black;">&#41;</span>
    baseData = baseData + newData
    URL = baseURL + size + baseData    
    <span style="color: #ff7700;font-weight:bold;">return</span> URL
&nbsp;
<span style="color: #8ea1b0; font-style: italic;"># Reading test data: connecting to server and extracting lines</span>
f = <span style="color: #dc143c;">urllib</span>.<span style="color: black;">urlopen</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'http://gis.someserver.com/TestData.csv'</span><span style="color: black;">&#41;</span>
stations = f.<span style="color: black;">readlines</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
kmlBody = <span style="color: black;">&#40;</span><span style="color: #483d8b;">''</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">for</span> s <span style="color: #ff7700;font-weight:bold;">in</span> stations:
    data = s.<span style="color: black;">split</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">','</span><span style="color: black;">&#41;</span>
    <span style="color: #8ea1b0; font-style: italic;"># Generate random data</span>
    a = <span style="color: black;">&#91;</span><span style="color: black;">&#93;</span>
    <span style="color: #ff7700;font-weight:bold;">for</span> r <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #008000;">range</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">60</span><span style="color: black;">&#41;</span>:
        a.<span style="color: black;">append</span><span style="color: black;">&#40;</span><span style="color: #008000;">str</span><span style="color: black;">&#40;</span><span style="color: #008000;">round</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">random</span>.<span style="color: black;">gauss</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">50</span>,<span style="color: #ff4500;">10</span><span style="color: black;">&#41;</span>, <span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
    chart = lineChart<span style="color: black;">&#40;</span>a<span style="color: black;">&#41;</span>
&nbsp;
    <span style="color: #8ea1b0; font-style: italic;"># data is csv as station name (0), long (1), lat (2), y (3)</span>
    kml = <span style="color: black;">&#40;</span>
        <span style="color: #483d8b;">'&lt;Placemark&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;name&gt;%s&lt;/name&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;description&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;![CDATA[<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;p&gt;Value: %s&lt;/p&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;p&gt;&lt;img src=&quot;%s&quot; width=&quot;250&quot; height=&quot;100&quot; /&gt;&lt;/p&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">']]&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;/description&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;Point&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;coordinates&gt;%f,%f&lt;/coordinates&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;/Point&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: #483d8b;">'&lt;/Placemark&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
        <span style="color: black;">&#41;</span> <span style="color: #66cc66;">%</span><span style="color: black;">&#40;</span>data<span style="color: black;">&#91;</span>0<span style="color: black;">&#93;</span>, data<span style="color: black;">&#91;</span><span style="color: #ff4500;">3</span><span style="color: black;">&#93;</span>, chart, <span style="color: #008000;">float</span><span style="color: black;">&#40;</span>data<span style="color: black;">&#91;</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span>, <span style="color: #008000;">float</span><span style="color: black;">&#40;</span>data<span style="color: black;">&#91;</span><span style="color: #ff4500;">2</span><span style="color: black;">&#93;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
    kmlBody = kmlBody + kml
&nbsp;
<span style="color: #8ea1b0; font-style: italic;"># Bits and pieces of the KML file</span>
contentType = <span style="color: black;">&#40;</span><span style="color: #483d8b;">'Content-Type: application/vnd.google-earth.kml+xml<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
kmlHeader = <span style="color: black;">&#40;</span><span style="color: #483d8b;">'&lt;?xml version=<span style="color: #000099; font-weight: bold;">\&quot;</span>1.0<span style="color: #000099; font-weight: bold;">\&quot;</span> encoding=<span style="color: #000099; font-weight: bold;">\&quot;</span>UTF-8<span style="color: #000099; font-weight: bold;">\&quot;</span>?&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
             <span style="color: #483d8b;">'&lt;kml xmlns=<span style="color: #000099; font-weight: bold;">\&quot;</span>http://earth.google.com/kml/2.1<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
             <span style="color: #483d8b;">'&lt;Document&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
kmlFooter = <span style="color: black;">&#40;</span><span style="color: #483d8b;">'&lt;/Document&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span>
             <span style="color: #483d8b;">'&lt;/kml&gt;<span style="color: #000099; font-weight: bold;">\n</span>'</span><span style="color: black;">&#41;</span>
&nbsp;
&nbsp;
<span style="color: #ff7700;font-weight:bold;">print</span> contentType
<span style="color: #ff7700;font-weight:bold;">print</span> kmlHeader
<span style="color: #ff7700;font-weight:bold;">print</span> kmlBody
<span style="color: #ff7700;font-weight:bold;">print</span> kmlFooter</pre></div></div>

<p>Well, this is not exactly barebones, because we also wanted to generate dynamic graphs for each placemark, in the easiest possible way. My first idea was to use one of the multiple javascript libraries available in the net However, a quick search revealed that KML files do not support javascript in the <code>description</code> tag. That was the time when I remembered playing with Google Charts a while ago. The <code>lineChart</code> function above is simply a call to create a line chart using the charts API. Because this is a test, I used 60 randomly generated data points, which explains the presence of <code>random</code> as an imported library.</p>
<p>Originally, I did not want to use javascript at all, so inserted the code as a search in maps, generating a link like <code>http://maps.google.co.nz/maps?q=http://gis.someserver.com/dynamicmap.py</code> Just copy the address, send it to some one and, presto, they have access to my map. However, I wanted to embed it in a blog post<sup><a href="http://trendecarga.com/2009/01/25/probando-mapas-en-el-tren/" title="link to Tren de Carga">§</a></sup> and I was struggling to do it. The solution was to click on the &#8216;Link&#8217; link in the generated map to copy the &#8216;Paste HTML to embed in website&#8217; link. This gives an <code>iframe</code> block that can be copied in any page or blog post.</p>
<p>While helping a friend to create another map, we faced the problem that the data set was being updated every five minutes. What is the problem? The map was not being refreshed often enough. The I am not sure if the problem was a browser cache or Google Maps, but it could be solved by calling the KML file with a random extra argument (the script does not need take any arguments, so anything after the question mark is ignored). In my case I needed a frequent random argument, so I use the current time (using the date would work for once a day updates). This meant inserting the map using javascript (and using a Google Maps key). The code for a simple page&#8211;from the header onwards&#8211;would look like:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;head&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;
&lt;title&gt;A simple dynamic python generated map&lt;/title&gt;
&lt;script src=&quot;http://maps.google.com/maps?file=api&amp;amp;v=2&amp;amp;key=my_key&quot;
  type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    //&lt;![CDATA[
&nbsp;
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById(&quot;map&quot;));
        map.setCenter(new GLatLng(-33.458943, -70.658569), 11);
        var pollution = new GGeoXml(&quot;http://gis.uncronopio.org/testmapscsv.py?&quot;+
                        (new Date()).getTime());
        map.addOverlay(pollution);
      }
    }
    //]]&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body onload=&quot;load()&quot; onunload=&quot;GUnload()&quot;&gt;
&lt;div id=&quot;map&quot; style=&quot;width:750px;height:600px&quot;&gt;&lt;/div&gt;
&lt;/body&gt;</pre></div></div>

<p>It was not too bad for mucking around on Friday in between doing house chores.</p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2009/02/01/generating-dynamic-google-maps-with-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Seal in Kaikoura</title>
		<link>http://quantum.uncronopio.org/2009/01/13/seal-in-kaikoura/</link>
		<comments>http://quantum.uncronopio.org/2009/01/13/seal-in-kaikoura/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 03:49:02 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[geocoded]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=357</guid>
		<description><![CDATA[Last week we did a short trip to the Northern part of the South Island. We spent the first day mostly in Kaikoura, where the best part was visiting the Seal Colony. The best part was jumping between rocks with my sun, trying to get closer to the seals.

Seal on holidays, Kaikoura, New Zealand.
Seal colony [...]]]></description>
			<content:encoded><![CDATA[<p>Last week we did a short trip to the Northern part of the South Island. We spent the first day mostly in Kaikoura, where the best part was visiting the Seal Colony. The best part was jumping between rocks with my sun, trying to get closer to the seals.</p>
<p><a href="http://www.flickr.com/photos/58862990@N00/3192566685" title="View 'Seal resting in Kaikoura' on Flickr.com"><img src="http://farm4.static.flickr.com/3083/3192566685_16f020580d.jpg" alt="Seal resting in Kaikoura" border="0" width="500" height="375" /></a></p>
<p><strong>Seal on holidays, Kaikoura, New Zealand.</strong></p>
<p><a href="http://maps.google.co.nz/maps/ms?ie=UTF8&#038;hl=en&#038;msa=0&#038;msid=101407331100566387602.000460960a9999b1e84b6&#038;ll=-42.422696,173.715563&#038;spn=0.009377,0.017445&#038;t=h&#038;z=16">Seal colony [maptype=G_HYBRID_MAP]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2009/01/13/seal-in-kaikoura/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A quiet moment</title>
		<link>http://quantum.uncronopio.org/2008/12/04/a-quiet-moment/</link>
		<comments>http://quantum.uncronopio.org/2008/12/04/a-quiet-moment/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 02:18:51 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[chile]]></category>
		<category><![CDATA[geocoded]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=343</guid>
		<description><![CDATA[A quiet moment in Santiago&#8217;s cathedral. Almost five hundred years in the same spot, although it is like &#8216;my granfather&#8217;s axe&#8217;: it has been destroyed and rebuilt a few times.

Santiago&#8217;s cathedral.
Cathedral
]]></description>
			<content:encoded><![CDATA[<p>A quiet moment in Santiago&#8217;s cathedral. Almost five hundred years in the same spot, although it is like &#8216;my granfather&#8217;s axe&#8217;: it has been destroyed and rebuilt a few times.</p>
<p><a href="http://www.flickr.com/photos/58862990@N00/3080623737" title="View 'Catedral de Santiago' on Flickr.com"><img src="http://farm4.static.flickr.com/3236/3080623737_c77d731dca.jpg" alt="Catedral de Santiago" border="0" width="364" height="500" /></a></p>
<p><strong>Santiago&#8217;s cathedral.</strong></p>
<p><a href="http://maps.google.co.nz/?ie=UTF8&#038;ll=-33.43753,-70.651402&#038;spn=0.002758,0.005633&#038;t=h&#038;z=18">Cathedral</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2008/12/04/a-quiet-moment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Memories of Coffs Harbour</title>
		<link>http://quantum.uncronopio.org/2008/10/31/memories-of-coffs-harbour/</link>
		<comments>http://quantum.uncronopio.org/2008/10/31/memories-of-coffs-harbour/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 07:52:44 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[geocoded]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=338</guid>
		<description><![CDATA[
Coffs Harbour Jetty, October 2008, 7 am.
Coffs Harbour Jetty
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/58862990@N00/2988873338" title="View 'Fishing boats in Coffs Harbour' on Flickr.com"><img src="http://farm4.static.flickr.com/3054/2988873338_1daedd0f9c.jpg" alt="Fishing boats in Coffs Harbour" border="0" width="500" height="375" /></a></p>
<p><strong>Coffs Harbour Jetty, October 2008, 7 am.</strong></p>
<p><a href="http://maps.google.com.au/maps?f=q&#038;hl=en&#038;geocode=&#038;q=coffs+harbour&#038;sll=-25.335448,135.745076&#038;sspn=48.242547,69.521484&#038;ie=UTF8&#038;ll=-30.30302,153.145294&#038;spn=0.023046,0.033946&#038;z=15">Coffs Harbour Jetty</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2008/10/31/memories-of-coffs-harbour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wood variability</title>
		<link>http://quantum.uncronopio.org/2008/08/29/wood-variability/</link>
		<comments>http://quantum.uncronopio.org/2008/08/29/wood-variability/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 22:20:18 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[forestry]]></category>
		<category><![CDATA[geocoded]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=331</guid>
		<description><![CDATA[Trees are amongst the most variable living organisms in the planet. How variable is wood colour for a given species?

Eucalyptus urophylla x Eucalyptus grandis hybrid&#8217;s sawn timber. Notice the range of available colours. Maybe the use of clones is exacerbating colour differences. Photo taken in Bahia State, Brazil.
Rough location for the picture
Rough location for the [...]]]></description>
			<content:encoded><![CDATA[<p>Trees are amongst the most variable living organisms in the planet. How variable is wood colour for a given species?</p>
<p><a href="http://www.flickr.com/photos/58862990@N00/2806364555" title="View 'Colour variation' on Flickr.com"><img src="http://farm4.static.flickr.com/3264/2806364555_e6c054b7ff.jpg" alt="Colour variation" border="0" width="500" height="375" /></a><br />
<strong><em>Eucalyptus urophylla x Eucalyptus grandis</em> hybrid&#8217;s sawn timber. Notice the range of available colours. Maybe the use of clones is exacerbating colour differences. Photo taken in Bahia State, Brazil.</strong></p>
<p><a href="http://maps.google.com.br/maps?f=q&#038;hl=pt-BR&#038;geocode=&#038;q=posto+da+mata+Nova+Vi%C3%A7osa&#038;ie=UTF8&#038;ll=-17.887273,-39.646912&#038;spn=1.589157,2.749329&#038;z=9">Rough location for the picture</a></p>
<p><strong>Rough location for the picture.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2008/08/29/wood-variability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rocking trees</title>
		<link>http://quantum.uncronopio.org/2008/08/14/rocking-trees/</link>
		<comments>http://quantum.uncronopio.org/2008/08/14/rocking-trees/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 10:26:47 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[geocoded]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=327</guid>
		<description><![CDATA[Rocking trees from zentree on Vimeo.
This is one of the things that I am writing about: rocking trees, which are located around 100 m from my office.
Glasshouse experiment location.
]]></description>
			<content:encoded><![CDATA[<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=1529941&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://www.vimeo.com/moogaloop.swf?clip_id=1529941&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://www.vimeo.com/1529941?pg=embed&amp;sec=1529941">Rocking trees</a> from <a href="http://www.vimeo.com/user677148?pg=embed&amp;sec=1529941">zentree</a> on <a href="http://vimeo.com?pg=embed&amp;sec=1529941">Vimeo</a>.</p>
<p>This is one of the things that I am writing about: rocking trees, which are located around 100 m from my office.</p>
<p><a href="http://maps.google.co.nz/?ie=UTF8&#038;ll=-43.523399,172.587276&#038;spn=0.002361,0.004587&#038;t=h&#038;z=18">Glasshouse experiment location.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2008/08/14/rocking-trees/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying air pollution data</title>
		<link>http://quantum.uncronopio.org/2008/07/02/displaying-air-pollution-data/</link>
		<comments>http://quantum.uncronopio.org/2008/07/02/displaying-air-pollution-data/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 09:04:14 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[chile]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[geocoded]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/?p=322</guid>
		<description><![CDATA[Last week I was contacted by my friend Marcelo about increasing awareness of air pollution problems in Santiago, Chile. He was becoming involved in the problem from a technical point of view (GIS and urban forestry). One of the main problems was the lack of proper information for decision making, so we decided to quickly [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I was contacted by my friend Marcelo about increasing awareness of air pollution problems in Santiago, Chile. He was becoming involved in the problem from a technical point of view (GIS and urban forestry). One of the main problems was the lack of proper information for decision making, so we decided to quickly put together a prototype. Today the page on <a href='http://maps.google.com/maps?q=http://forestry.uncronopio.org/AirePuro2.py' title='nomap'>particulate material pollution</a> went online.</p>
<p><a href='http://maps.google.com/maps?q=http://forestry.uncronopio.org/AirePuro2.py' title='nomap'><img src="http://quantum.uncronopio.org/wp-content/uploads/2008/07/icap.jpg" alt="ICAP.jpg" border="0" width="500" height="309" /></a></p>
<p>The general process was relatively simple. <a href="http://www.conama.cl">CONAMA</a> provides data on pollution in graphical form (see, for example, <a href="http://www.conama.cl/rm/airviro/hoy/7dias.html?est=CN&#038;param=icap&#038;dias=7">here</a>). I had a quick look at the pages using Firebug, which showed that all the data used for the graphs was contained in one of the javascript files called by the page (<code>variable.js</code>). Then I could obtain up to date pollution data by reading that file, which seems to be updated hourly.</p>
<p>The other component was the location of the air quality stations together with the coordinates of the polygon that marks the city boundary. Marcelo provided me with a KML file containing all the coordinates.</p>
<p>The really fun part was to write a script using <a href='http://www.python.org'>Python</a> glueing all these components. The advantages of working with such a great high level language is the default library, which makes chores like reading a file located in another web site very simple, like:</p>

<div class="wp_syntax"><div class="code"><pre class="python python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">urllib</span>
f = <span style="color: #dc143c;">urllib</span>.<span style="color: black;">urlopen</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'http://www.conama.cl/rm/airviro/hoy/variable.js'</span><span style="color: black;">&#41;</span>
lines = f.<span style="color: black;">readlines</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

<p>Probably the most challenging part has been to quickly learn the basics of KML (without having much free time to do so). The <a href="http://code.google.com/apis/kml/documentation/">documentation for KML</a> is OK, but the <a href="http://code.google.com/apis/kml/documentation/kml_tut.html">tutorial</a> was not exactly what I was trying to do, so there was a fair amount of trial and error to get things working properly.</p>
<p>Overall, coming back to Python (which I started using in version 1.5) has been a lot of fun, particularly when one has a project of &#8217;social value&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2008/07/02/displaying-air-pollution-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intersection of poetry and marketing</title>
		<link>http://quantum.uncronopio.org/2008/04/17/intersection-of-poetry-and-marketing/</link>
		<comments>http://quantum.uncronopio.org/2008/04/17/intersection-of-poetry-and-marketing/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 23:48:02 +0000</pubDate>
		<dc:creator>Luis</dc:creator>
				<category><![CDATA[geocoded]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://quantum.uncronopio.org/2008/04/17/intersection-of-poetry-and-marketing/</guid>
		<description><![CDATA[Walking in Salvador, Bahia I came across this street sign, showing the (imperfect) intersection of poetry and marketing. The sign points to Vinícius de Moraes Square, and someone put a sign for a music shop.

Approximate location of Vinícius de Moraes square
]]></description>
			<content:encoded><![CDATA[<p>Walking in Salvador, Bahia I came across this street sign, showing the (imperfect) intersection of poetry and marketing. The sign points to <a href="http://en.wikipedia.org/wiki/Vinicius_de_Moraes">Vinícius de Moraes</a> Square, and someone put a sign for a music shop.</p>
<p><a href="http://www.flickr.com/photos/58862990@N00/2419163077" title="View 'poetry and marketing' on Flickr.com"><img src="http://farm3.static.flickr.com/2145/2419163077_cd20113cff.jpg" alt="poetry and marketing" border="0" width="375" height="500" /></a></p>
<p><a href="http://maps.google.com.br/maps?f=q&#038;hl=pt-BR&#038;geocode=&#038;q=sofitel+hotel+salvador+bahia&#038;jsv=107&#038;ie=UTF8&#038;ll=-12.954605,-38.355267&#038;spn=0.012631,0.014956&#038;z=16">Approximate location of Vinícius de Moraes square</a></p>
]]></content:encoded>
			<wfw:commentRss>http://quantum.uncronopio.org/2008/04/17/intersection-of-poetry-and-marketing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

