<?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>Andrew J Davies &#187; Computers</title>
	<atom:link href="http://www.anddavies.co.uk/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anddavies.co.uk</link>
	<description>Marine ecology, modelling and computers</description>
	<lastBuildDate>Thu, 15 Dec 2011 14:36:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Habitat Suitability for Cold-Water Corals</title>
		<link>http://www.anddavies.co.uk/marine-ecology/habitat-suitability-for-cold-water-corals/</link>
		<comments>http://www.anddavies.co.uk/marine-ecology/habitat-suitability-for-cold-water-corals/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 08:27:32 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[General ecology]]></category>
		<category><![CDATA[Marine ecology]]></category>
		<category><![CDATA[Publications]]></category>
		<category><![CDATA[deep-sea]]></category>
		<category><![CDATA[ecology]]></category>
		<category><![CDATA[lophelia]]></category>
		<category><![CDATA[maxent]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[prediction]]></category>

		<guid isPermaLink="false">http://www.anddavies.co.uk/?p=324</guid>
		<description><![CDATA[The framework-forming coral Lophelia pertusa Andrew J. Davies and John Guinotte Cold-water corals are found in all the oceans of the world. Usually below 200 metres, they create structurally complex habitat that gives rise to a unique deep-sea ecosystem in, what otherwise may be a relatively featureless area. Numerous other filter-feeding organisms are found, along [...]]]></description>
			<content:encoded><![CDATA[<div class="mceTemp" style="text-align: center;">
<dl id="attachment_325" class="wp-caption alignright" style="width: 165px;">
<dt class="wp-caption-dt"><img class="size-medium wp-image-325 " title="Lophelia pertusa from NOAA" src="http://www.anddavies.co.uk/wp-content/uploads/2011/04/Lophelia_figure_1_600-221x300.jpg" alt="" width="155" height="210" /></dt>
<dd class="wp-caption-dd">The framework-forming coral <em>Lophelia pertusa</em></dd>
</dl>
</div>
<p><em>Andrew J. Davies and John Guinotte</em></p>
<p>Cold-water corals are found in all the oceans of the world. Usually below 200 metres, they create structurally complex habitat that gives rise to a unique deep-sea ecosystem in, what otherwise may be a relatively featureless area. Numerous other filter-feeding organisms are found, along with fish that may use the coral as a nursery ground. Yet, we don&#8217;t know where many occurrences of cold-water coral are&#8230;.</p>
<p>This is where habitat suitability modelling comes in. By using the best available scientific information and powerful statistical tools, we are able to predict, based on the species environmental requirements where they are likely to occur. Mine and John&#8217;s work, published in PLoS ONE is an important step towards turning habitat suitability modelling into a viable tool for the protection of vulnerable marine ecosystems in the deep sea. This paper represents several years of work, designing and constructing new approaches to allow us to model coral distributions at high resolution. The outputs speak for themselves, with a 1 km resolution, we may finally be able to say to other researchers, go here, you have a good chance of finding coral in this area. Or, we may be able to say, there is a high probability of coral occurrence here, perhaps we could designate this area closed to bottom contact fishing or other exploitation.</p>
<p>Read the abstract below, or download the PDF from either my site or the <a href="http://dx.doi.org/10.1371/journal.pone.0018483" target="_blank">PLoS ONE site</a>.</p>
<h3>Download article</h3>
<a class="downloadlink" href="http://www.anddavies.co.uk/wp-content/plugins/download-monitor/download.php?id=3" title=" downloaded 146 times" >Davies and Guinotte (2011) PLoS ONE (146)</a>
<h3></h3>
<h3>Full citation</h3>
<p><strong>Davies AJ</strong>, Guinotte JM (2011) Global Habitat Suitability for Framework-Forming Cold-Water Corals. PLoS ONE 6(4): e18483. doi:<a href="http://dx.doi.org/10.1371/journal.pone.0018483" target="_blank">10.1371/journal.pone.0018483</a></p>
<h3>Abstract</h3>
<p><span>Predictive habitat models are increasingly being used by conservationists, researchers and governmental bodies to identify vulnerable ecosystems and species&#8217; distributions in areas that have not been sampled. However, in the deep sea, several limitations have restricted the widespread utilisation of this approach. These range from issues with the accuracy of species presences, the lack of reliable absence data and the limited spatial resolution of environmental factors known or thought to control deep-sea species&#8217; distributions. To address these problems, global habitat suitability models have been generated for five species of framework-forming scleractinian corals by taking the best available data and using a novel approach to generate high resolution maps of seafloor conditions. High-resolution global bathymetry was used to resample gridded data from sources such as World Ocean Atlas to produce continuous 30-arc second (~1 km<sup>2</sup>) global grids for environmental, chemical and physical data of the world&#8217;s oceans. The increased area and resolution of the environmental variables resulted in a greater number of coral presence records being incorporated into habitat models and higher accuracy of model predictions. The most important factors in determining cold-water coral habitat suitability were depth, temperature, aragonite saturation state and salinity. Model outputs indicated the majority of suitable coral habitat is likely to occur on the continental shelves and slopes of the Atlantic, South Pacific and Indian Oceans. The North Pacific has very little suitable scleractinian coral habitat. Numerous small scale features (i.e., seamounts), which have not been sampled or identified as having a high probability of supporting cold-water coral habitat were identified in all ocean basins. Field validation of newly identified areas is needed to determine the accuracy of model results, assess the utility of modelling efforts to identify vulnerable marine ecosystems for inclusion in future marine protected areas and reduce coral bycatch by commercial fisheries.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.anddavies.co.uk/marine-ecology/habitat-suitability-for-cold-water-corals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pivot Tables in Excel 2007.. Easy!</title>
		<link>http://www.anddavies.co.uk/computers/pivot-tables-in-excel-2007-easy/</link>
		<comments>http://www.anddavies.co.uk/computers/pivot-tables-in-excel-2007-easy/#comments</comments>
		<pubDate>Sat, 02 Oct 2010 18:21:04 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[excel]]></category>

		<guid isPermaLink="false">http://www.anddavies.co.uk/?p=213</guid>
		<description><![CDATA[A student asked me how to make a Pivot Table in Excel 2007 and group by a field. So I just drew up this simple video. I thought I&#8217;d release it.. Enjoy.. It is so easy! View the screencast below:]]></description>
			<content:encoded><![CDATA[<p>A student asked me how to make a Pivot Table in Excel 2007 and group by a field. So I just drew up this simple video. I thought I&#8217;d release it..</p>
<p>Enjoy.. It is so easy!</p>
<p><strong>View the screencast below:</strong></p>
<p style="text-align: center;"><object type="application/x-shockwave-flash" data="/wp-content/plugins/fp4wp/flowplayer/FlowPlayerLight.swf" width="440" height="360" id="FlowPlayer"><param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="/wp-content/plugins/fp4wp/flowplayer/FlowPlayerLight.swf" />
	<param name="quality" value="high" />
	<param name="scale" value="noScale" />
	<param name="wmode" value="transparent" />
	<param name="flashvars" value="config={videoFile: '/wp-content/videos/pivot_table.m4v',
	showMenu: false, 
	showStopButton: false, 
	showScrubber: false, 
	showVolumeSlider: true,
	showMuteVolumeButton: false, 
	showFullScreenButton: false, 
	controlBarBackgroundColor: -1,
	showPlayListButtons: false,
	loop: false,
	usePlayOverlay: true,
#	splashImageFile: 'image.jpg',			//place splash image file here
	autoPlay: false,
	initialScale: 'fit',
	autoBuffering: true 	 }" /></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.anddavies.co.uk/computers/pivot-tables-in-excel-2007-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perl oneliner search and replace</title>
		<link>http://www.anddavies.co.uk/computers/perl-one-liner/</link>
		<comments>http://www.anddavies.co.uk/computers/perl-one-liner/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 09:30:22 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://www.anddavies.co.uk/?p=74</guid>
		<description><![CDATA[Just been working with my favourite language to change a space delimited file into a comma delimited file (CSV). With large files, even good file editors like JujuEdit take forever. For the first time I have actually crashed this program whilst searching and replacing a 250mb file. Maybe it&#8217;s me?! To avoid this problem reoccuring, and [...]]]></description>
			<content:encoded><![CDATA[<p>Just been working with my favourite language to change a space delimited file into a comma delimited file (CSV). With large files, even good file editors like <a href="http://www.jujusoft.com/software/edit/index.html">JujuEdit</a> take forever. For the first time I have actually crashed this program whilst searching and replacing a 250mb file. Maybe it&#8217;s me?!</p>
<p>To avoid this problem reoccuring, and because I have not updated my site in a while, here is a nifty perl one-liner to search and replace spaces with comma-space.</p>
<p>First install a perl package, I use <a href="http://www.activestate.com/activeperl/">ActivePerl</a>. Its free and easy to install on Windows (there are many different OS versions available).</p>
<p>Second, after the install has completed, open up the Windows command prompt (<span style="color: #0000ff;">Start &gt; Run &gt; cmd</span>). Change the directory to your working directory that contains the files that you wish to search and replace. For example (in blue):</p>
<blockquote><p>C:\&gt;<span style="color: #0000ff;">cd c:\perl\myworkingdir</span></p></blockquote>
<p>Now your in your working directory, you need to type the following (in blue):</p>
<blockquote><p><span style="color: #0000ff;"><span style="color: #000000;">c:\perl\myworkingdir&gt;</span>c:\perl\bin\perl.exe -p -i.bak -e &#8220;s/ /, /g&#8221; filename.csv</span></p></blockquote>
<p>Here is the breakdown:</p>
<ul>
<li><span style="color: #0000ff;">c:\perl\bin\perl.exe</span>: Calls the perl program</li>
<li><span style="color: #0000ff;">-p</span>: Loops the search and replace through the file.</li>
<li><span style="color: #0000ff;">-i.bak</span>: Creates a backup file incase you make a mistake.</li>
<li><span style="color: #0000ff;">-e</span>: Makes the script directly executable.</li>
<li><span style="color: #0000ff;">&#8220;s/ /, /g&#8221;</span>: The expression to pattern match, in this case <span style="color: #0000ff;">s</span> means start of line <span style="color: #0000ff;">/ /</span> is the space, <span style="color: #0000ff;">, /</span> is the string to replace it and <span style="color: #0000ff;">g</span> is to tell perl to run it on all the file, not just the first instance.</li>
<li><span style="color: #0000ff;">filename.csv</span>: The name of the file to search and replace.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.anddavies.co.uk/computers/perl-one-liner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

