<?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>patojo potoo</title>
	<atom:link href="http://www.locuscor.net/wordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.locuscor.net/wordpress</link>
	<description>Ramblin&#039; mind</description>
	<lastBuildDate>Sat, 24 Mar 2012 17:57:34 +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>Spyder (python IDE) on OSX Snow Leopard and Lion</title>
		<link>http://www.locuscor.net/wordpress/?p=116</link>
		<comments>http://www.locuscor.net/wordpress/?p=116#comments</comments>
		<pubDate>Sat, 24 Mar 2012 17:57:34 +0000</pubDate>
		<dc:creator>pete_</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[spyder]]></category>

		<guid isPermaLink="false">http://www.locuscor.net/wordpress/?p=116</guid>
		<description><![CDATA[After noticing a theme in the spyder dev email list of difficulties getting spyder running on OSX i have decided to post some lessons learned from (semi* &#8212; mind the asterisk) successfully installing it on both snow leopard and lion. &#8230; <a href="http://www.locuscor.net/wordpress/?p=116">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After noticing a theme in the <a href="http://groups.google.com/group/spyderlib" target="_blank">spyder dev</a> email list of difficulties getting spyder running on OSX i have decided to post some lessons learned from (semi* &#8212; mind the asterisk) successfully installing it on both snow leopard and lion. </p>
<h3>Snow Leopard</h3>
<p>* A disclaimer: I did not get matplotlib to work on Snow Leopard. I was able to get spyder running though, it just threw some gripy error messages on startup in the Ipython shell.</p>
<p>Its a bit tricky because you can get off on the wrong foot early in the process if you don&#8217;t get python working properly. I hodge-podged it on Snow Leopard and it took a while and lots trial and error.  Generally I followed the guidelines for installing python on OSX from <a href="http://www.python.org/getit/mac/" target="_blank">python</a>. brilliant.</p>
<p>Once you have the latest (non-mac) version of python blinking stupidly at you when you type:<br />
<code>$ python</code><br />
you should be off on the right track.</p>
<p>I recommend installing <a href="http://www.pip-installer.org/en/latest/index.html" target="_blank">PIP</a> for python package management, it has <code>uninstall</code> going for it, which is nice.</p>
<p>At this stage shift over to following the <a href="http://packages.python.org/spyder/installation.html" target="_blank">install instructions</a> for spyder. I used the development version. </p>
<p>The main issue now is getting QT and PyQT working. I found that the best approach was to build QT from <a href="http://qt.nokia.com/downloads/downloads#qt-lib" target="_blank">source tarball</a>, not the OSX binary package.</p>
<p>Then <a href="http://www.riverbankcomputing.co.uk/software/sip/download" target="_blank">SIP</a> and <a href="http://www.riverbankcomputing.co.uk/software/pyqt/intro" target="_blank">PyQT</a> from source as well.</p>
<p>Now install the other spyder dependencies using PIP.</p>
<p>Finally!<br />
<code>$ sudo python setup.py install</code></p>
<p>in <code>/Users/<user>/src/spyderlib</code></p>
<p>Now, go home (~) and<br />
<code>$ spyder</code><br />
Should get you off and running.</p>
<h3>Lion</h3>
<p>On Lion I decided I&#8217;d try the <a href="http://www.enthought.com/products/epd.php" target="_blank">enthought</a> method and got the full (academic) EPD 7.2.2 package and installed QT, PyQT, and SIP as in Snow Leopard. Mind you, EPD is a whole-kit-and-kaboodle approach: it bundles python and a BUNCH of packages including numpy and scipy. I was a little wary of this but it actually worked out well and was much quicker than the Snow Leopard saga.</p>
<p>Also installed PIP to make sure I had dependencies for spyder.</p>
<p>Then grabbed the spyder development <a href="http://code.google.com/p/spyderlib/source/checkout" target="_blank">version</a> and installed as above.</p>
<p>Next time I&#8217;ve got to do this im going to just go for the EPD version. Up and running quick is the bottom line.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.locuscor.net/wordpress/?feed=rss2&#038;p=116</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling PostGIS 2.0 on Mint 12 (ubuntu oneric)</title>
		<link>http://www.locuscor.net/wordpress/?p=109</link>
		<comments>http://www.locuscor.net/wordpress/?p=109#comments</comments>
		<pubDate>Sat, 24 Mar 2012 17:15:49 +0000</pubDate>
		<dc:creator>pete_</dc:creator>
				<category><![CDATA[Geospatial]]></category>
		<category><![CDATA[gdal]]></category>
		<category><![CDATA[libgeos]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[postgis]]></category>

		<guid isPermaLink="false">http://www.locuscor.net/wordpress/?p=109</guid>
		<description><![CDATA[Compiling PostGIS 2.0 on a fresh Mint12 install has been a little tricky mostly because of the geos version dependencies (>3.3.2). Initially, I thought I could use the ubuntu gdal package and a source compiled geos. However make check for &#8230; <a href="http://www.locuscor.net/wordpress/?p=109">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Compiling PostGIS 2.0 on a fresh Mint12 install has been a little tricky mostly because of the geos version dependencies (>3.3.2). Initially, I thought I could use the ubuntu gdal package and a source compiled geos. However <code>make check</code> for postgis failed in the raster segment on a bunch of geos calls from gdal. Thus I devised to package the unstable <a href="http://download.osgeo.org/geos/geos-3.3.2.tar.bz2">geos (3.3.2)</a> so that aptitude could build gdal against it. I was able to package and install the unstable geos but this didn&#8217;t solve the problem as the aptitude version of gdal is fixed to geos 3.2.3. </p>
<p>Sooooo. This was going to be a triumphant post about compiling postgis 2 but it has turned out to be a little less grandiose: How to package up a development version of geos (or any other development version of a package designed to be compiled from source) and install it via the package management system. BORING. Useful to know though. I relied heavily on <a href="http://wiki.debian.org/IntroDebianPackaging" target="_blank">IntroToDebianPackaging</a> for conceptual guidance, though it uses a different package creation tool.</p>
<p>To create the .deb package I used <code>dpkg-buildpackage</code> but had to create a <code>/debian</code> directory and a few files. <code>dpkg-buildpackage</code> needs a directory called debian:<br />
<code>geos-3.3.2/debian/</code></p>
<p>First got the geos development package and unpacked using:<br />
<code>$ tar -jxvz geos-3.3.2.tar.bz2 </code></p>
<p>Created a debian directory in it using guidelines from <a href="http://wiki.debian.org/IntroDebianPackaging" target="_blank">DebianWiki</a> in the new<br />
geos-3.3.2 source directory:<br />
<code>$ mkdir geos-3.3.2/debian</code></p>
<p>Then grabbed the ubuntu .deb package using:<br />
<code>$ aptitude download geos-3.2.2</code></p>
<p>Copied <code>DEBIAN/control</code> from the ubuntu package and modified it accordingly. Also copied <code>copyright</code> from the downloaded deb. and added <code>changelog</code>, <code>rules</code>, and <code>compat</code> to <code>geos-3.3.2/debian/</code> per DebianPackagingWiki.</p>
<p>The key here was to use the same name when running:<br />
<code># dch --create -v 1.0-1 --package libgeos</code></p>
<p>As is in the &#8220;Package&#8221; field in the <code>control</code> file.</p>
<p>After the above command you can cd to the root of the package and run <code>dpkg-buildpackage</code> which will create a .debi file in the parent directory which can be installed using <code>dpkg -i
<libgeos_3-3-2.deb>.</p>
<p>Hope it works for ya!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.locuscor.net/wordpress/?feed=rss2&#038;p=109</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SilviLaser 2011</title>
		<link>http://www.locuscor.net/wordpress/?p=77</link>
		<comments>http://www.locuscor.net/wordpress/?p=77#comments</comments>
		<pubDate>Thu, 27 Oct 2011 21:36:22 +0000</pubDate>
		<dc:creator>pete_</dc:creator>
				<category><![CDATA[Geospatial]]></category>
		<category><![CDATA[LiDAR]]></category>
		<category><![CDATA[ALS]]></category>
		<category><![CDATA[forestry]]></category>
		<category><![CDATA[laser scanning]]></category>
		<category><![CDATA[remote sensing]]></category>
		<category><![CDATA[Silvilaser 2011]]></category>
		<category><![CDATA[TLS]]></category>

		<guid isPermaLink="false">http://www.locuscor.net/wordpress/?p=77</guid>
		<description><![CDATA[The Tahune Airwalk From Silvilaser2011 Just returned from SilviLaser 2011 at the University of Tasmania in Hobart. It is an excellent conference attended by academics and professionals in forestry and remote sensing from around the globe. The conference is unique &#8230; <a href="http://www.locuscor.net/wordpress/?p=77">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table style="width:auto;" align="right" cellpadding="5">
<tr>
<td><a href="https://picasaweb.google.com/lh/photo/_0b_HXJlMtQHKY39NW5fYA6SvfDgf2v6q0SNA2gnZgs?feat=embedwebsite"><img src="https://lh4.googleusercontent.com/-2CPNQph6pSI/Tqi6Eo-d0uI/AAAAAAAAImA/yZEO7O-1Kog/s288/IMG_5501.JPG" height="192" width="288" /></a></td>
</tr>
<tr>
<td style="font-family:arial,sans-serif; font-size:11px; text-align:right">The Tahune Airwalk  From <a href="https://picasaweb.google.com/108581539621109655978/Silvilaser2011?authuser=0&#038;authkey=Gv1sRgCMKj0sz40e6b5AE&#038;feat=embedwebsite">Silvilaser2011</a></td>
</tr>
</table>
<p>Just returned from <a href="http://www.silvilaser2011.com/" target="_blank">SilviLaser 2011</a> at the University of Tasmania in Hobart. It is an excellent conference <a href="http://www.locuscor.net/silvilaser2011/Delegate%20List.pdf" target="_blank">attended by</a> academics and professionals in forestry and remote sensing from around the globe. The conference is unique in my experience as it has a comparatively narrow focus: active remote sensing, mostly laser and some radar, of biophysical forest metrics. It addresses this topic in great depth. There were no concurrent sessions which was refreshing and kept us all on the same page. As a young researcher in the field it was great to see the current work and put faces to the names that I cited in my <a href="http://www.locuscor.net/wordpress/?page_id=38" title="Dissertation">dissertation</a> and the <a href="http://www.locuscor.net/silvilaser2011/papers/074_Tittmann.pdf" target="_blank">paper </a> Sohail Shafii and I presented . Our <a href="http://www.locuscor.net/silvilaser2011/tittmann_shafii.pdf">presentation</a> was in the Emerging Technologies session with several other excellent presentations.</p>
<p>Terrestrial laser scanning (TLS), regional/national inventory applications, and operationaization of LiDAR inventory in a forest management context seemed to be emerging topics that were well represented, along with a few satellite (<a href="http://en.wikipedia.org/wiki/ICESat" target="_blank">ICESat</a>/<a href="http://icesat.gsfc.nasa.gov/icesat/glas.php" target="_blank">GLAS</a>) studies, and several papers focusing on statistical methods for imputing area-based stand metrics from point distributions. There seems to be a great deal of interest in this at the moment. I have some reservations about it, mostly because I don&#8217;t understand <a href="http://en.wikipedia.org/wiki/Random_forest" target="_blank">RandomForest</a> that well. </p>
<p>I&#8217;ve posted the <a href="http://www.locuscor.net/silvilaser2011/Abstracts.pdf" target="_blank">abstracts</a>, and all the <a href="http://www.locuscor.net/silvilaser2011/papers/" target="_blank">papers</a>. The program is below:</p>
<p><iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fwww.locuscor.net%2Fsilvilaser2011%2FProgramme_Info.pdf&#038;embedded=true" width="600" height="780" style="border: none;"></iframe> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.locuscor.net/wordpress/?feed=rss2&#038;p=77</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Graduated</title>
		<link>http://www.locuscor.net/wordpress/?p=55</link>
		<comments>http://www.locuscor.net/wordpress/?p=55#comments</comments>
		<pubDate>Thu, 08 Sep 2011 23:01:31 +0000</pubDate>
		<dc:creator>pete_</dc:creator>
				<category><![CDATA[personal]]></category>
		<category><![CDATA[doctorate]]></category>
		<category><![CDATA[graduation]]></category>

		<guid isPermaLink="false">http://www.locuscor.net/wordpress/?p=55</guid>
		<description><![CDATA[As of June, I have graduated. I&#8217;m relieved and grateful for the support of family, friends, and advisors. Bruce Hartsough and Debbie Elliott-Fisk have been indispensable, thanks so much Bruce and Debbie! I&#8217;ve posted my dissertation and will be updating &#8230; <a href="http://www.locuscor.net/wordpress/?p=55">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As of June, I have graduated. I&#8217;m relieved and grateful for the support of family, friends, and advisors. Bruce Hartsough and Debbie Elliott-Fisk have been indispensable, thanks so much Bruce and Debbie!</p>
<p>I&#8217;ve posted my <a href="http://www.locuscor.net/wordpress/?page_id=38" title="Dissertation">dissertation</a> and will be updating the site with publications, etc. soon.</p>
<p>As of August I have taken a position as a postdoctoral researcher at the UC Davis Institute for Transportation Studies/Energy Institute. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.locuscor.net/wordpress/?feed=rss2&#038;p=55</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LibLAS to GRASS r.in.xyz</title>
		<link>http://www.locuscor.net/wordpress/?p=6</link>
		<comments>http://www.locuscor.net/wordpress/?p=6#comments</comments>
		<pubDate>Fri, 04 Mar 2011 21:27:10 +0000</pubDate>
		<dc:creator>pete_</dc:creator>
				<category><![CDATA[Geospatial]]></category>
		<category><![CDATA[LiDAR]]></category>
		<category><![CDATA[GRASS]]></category>
		<category><![CDATA[LibLAS]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[subprocess]]></category>

		<guid isPermaLink="false">http://www.locuscor.net/wordpress/?p=6</guid>
		<description><![CDATA[I wrote some python to pipe las2txt to GRASS&#8217;s r.in.xyz on using subprocess which is what most of the GRASS python scripts use. Its not very sophisticated at all but seems to work decently well however I suspect Howard&#8217;s point &#8230; <a href="http://www.locuscor.net/wordpress/?p=6">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I wrote some python to  pipe las2txt to  GRASS&#8217;s r.in.xyz on using subprocess which is what most of the GRASS python scripts use. Its not very sophisticated at all but seems to work decently well however I suspect <a href="http://lists.osgeo.org/pipermail/liblas-devel/2011-March/001252.html">Howard&#8217;s point</a> about it not being much better than the text file approach is true. Its based on the GRASS LIDAR wiki page(<a href="http://grass.osgeo.org/wiki/LIDAR">GRASS Wiki</a>): Heres an example:</p>
<pre class="brush: python; title: ; notranslate">
from liblas import file, header
import subprocess as sub
import grass.script as grass

def run(cmd, **kwargs):
    grass.run_command(cmd, quiet = True, **kwargs)

path='../data/las/ucd_01.las'
dbname='ucd_01.las'
h=file.File(path).header
run(&quot;g.region&quot;, e=h.max[0], w=h.min[0], s=h.min[1], n=h.max[1])
pts=sub.Popen('las2txt -i %s --parse xyz --delimiter &quot;|&quot; --keep-classes 2 --stdout'%path, shell=True, stdout=sub.PIPE)
mkInRast=grass.feed_command(&quot;r.in.xyz&quot;, input=&quot;-&quot;, output=dbname, method='mean')
mkInRast.stdin.write(pts.communicate()[0])
mkInRast.stdin.close()
mkInRast.wait()

#this stuff is based on the wiki page for interpolating/filtering the resulting GRASS dataset

run(&quot;r.to.vect&quot;, flags='z', input=dbname, output=dbname+'_pt', feature='point')
run(&quot;v.surf.rst&quot;, layer='0', input=dbname+'_pt', elev= dbname+'_rst')
run(&quot;g.remove&quot;, vect='%s_pt'%dbname)
run(&quot;g.remove&quot;, rast=dbname)
</pre>
<p><div id="attachment_14" class="wp-caption alignright" style="width: 310px"><a href="http://www.locuscor.net/wordpress/wp-content/uploads/2011/03/13tif.png"><img src="http://www.locuscor.net/wordpress/wp-content/uploads/2011/03/13tif-300x261.png" alt="DEM from LiDAR" title="13tif" width="300" height="261" class="size-medium wp-image-14" /></a><p class="wp-caption-text">DEM from LIDAR</p></div><br />
<div id="attachment_13" class="wp-caption alignleft" style="width: 310px"><a href="http://www.locuscor.net/wordpress/wp-content/uploads/2011/03/13tifsr.png"><img src="http://www.locuscor.net/wordpress/wp-content/uploads/2011/03/13tifsr-300x261.png" alt="Hillshade from  LiDAR " title="13tifsr" width="300" height="261" class="size-medium wp-image-13" /></a><p class="wp-caption-text">Hillshade from LiDAR using GRASS and LibLAS from python</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.locuscor.net/wordpress/?feed=rss2&#038;p=6</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

