<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Calculating Wind Direction</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2009/04/28/calculating-wind-direction/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2009/04/28/calculating-wind-direction/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: An Interview with Dick Kusleika » Bacon Bits:</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/28/calculating-wind-direction/#comment-47701</link>
		<dc:creator>An Interview with Dick Kusleika » Bacon Bits:</dc:creator>
		<pubDate>Wed, 07 Jul 2010 06:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2401#comment-47701</guid>
		<description>&lt;p&gt;[...] Dick frequently chooses topics that are arcane, but curiously appealing  topics such as &quot;Calculating Wind Direction&quot; and &quot;Charting [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Dick frequently chooses topics that are arcane, but curiously appealing  topics such as &#8220;Calculating Wind Direction&#8221; and &#8220;Charting [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob van Gelder</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/28/calculating-wind-direction/#comment-39209</link>
		<dc:creator>Rob van Gelder</dc:creator>
		<pubDate>Mon, 04 May 2009 02:04:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2401#comment-39209</guid>
		<description>&lt;p&gt;I thought this looked familiar: &lt;a href=&quot;http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/&quot; rel=&quot;nofollow&quot;&gt;http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/&lt;/a&gt;&lt;br&gt;
Amazing to think.. this blog has been running for 4 years.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I thought this looked familiar: <a href="http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/" rel="nofollow">http://www.dailydoseofexcel.com/archives/2005/08/15/wind-direction-chart/</a><br />
Amazing to think.. this blog has been running for 4 years.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/28/calculating-wind-direction/#comment-39180</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Thu, 30 Apr 2009 04:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2401#comment-39180</guid>
		<description>&lt;p&gt;I wrote up a more graphical approach today, which still uses Dick&#039;s clever formula, but uses real charts instead of those silly pies to help describe his 180° double secret rotation trick. It also showed the error of T&#039;s ways. The post is called &lt;a title=&quot;Calculating Wind Direction per DDoE&quot; href=&quot;http://peltiertech.com/WordPress/calculating-wind-direction-ddoe/&quot; rel=&quot;nofollow&quot;&gt;Calculating Wind Direction per DDoE&lt;/a&gt;.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I wrote up a more graphical approach today, which still uses Dick&#8217;s clever formula, but uses real charts instead of those silly pies to help describe his 180° double secret rotation trick. It also showed the error of T&#8217;s ways. The post is called <a title="Calculating Wind Direction per DDoE" href="http://peltiertech.com/WordPress/calculating-wind-direction-ddoe/" rel="nofollow">Calculating Wind Direction per DDoE</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Jenkins</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/28/calculating-wind-direction/#comment-39177</link>
		<dc:creator>Doug Jenkins</dc:creator>
		<pubDate>Wed, 29 Apr 2009 10:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2401#comment-39177</guid>
		<description>&lt;p&gt;The trouble with the Forecast() function is it fits a straight line to your data, which isn&#039;t necessarily what you want to do.  For instance in your fourth example, if you enter something close to 5000 you will get a result of about 185, rather than 170, which I&#039;m guessing is what you&#039;d want.  What you often need is a piecewise straight line interpolation; i.e. for values between 2000 and 5000 fit a straight line between those two values, and for between 5000 and 10000 use a different straight line.  There should be an Excel function to do that, but there isn&#039;t.  Plenty of UDFs that will do the job though (including at &lt;a href=&quot;http://newtonexcelbach.wordpress.com/2008/08/10/intersections-interpolations-and-rotations/&quot; rel=&quot;nofollow&quot;&gt;http://newtonexcelbach.wordpress.com/2008/08/10/intersections-interpolations-and-rotations/&lt;/a&gt;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The trouble with the Forecast() function is it fits a straight line to your data, which isn&#8217;t necessarily what you want to do.  For instance in your fourth example, if you enter something close to 5000 you will get a result of about 185, rather than 170, which I&#8217;m guessing is what you&#8217;d want.  What you often need is a piecewise straight line interpolation; i.e. for values between 2000 and 5000 fit a straight line between those two values, and for between 5000 and 10000 use a different straight line.  There should be an Excel function to do that, but there isn&#8217;t.  Plenty of UDFs that will do the job though (including at <a href="http://newtonexcelbach.wordpress.com/2008/08/10/intersections-interpolations-and-rotations/" rel="nofollow">http://newtonexcelbach.wordpress.com/2008/08/10/intersections-interpolations-and-rotations/</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon Peltier</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/28/calculating-wind-direction/#comment-39175</link>
		<dc:creator>Jon Peltier</dc:creator>
		<pubDate>Wed, 29 Apr 2009 03:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2401#comment-39175</guid>
		<description>&lt;p&gt;Dick - Pretty clever. My approach was adding 360° to &quot;selected&quot; directions, getting the FORECAST, and MODding by 360. Basically the same, except I eyeballed the &quot;selected&quot; directions, rather than coming up with an algorithm like your test that they are within 180°. By the time I got there, I decided your approach was as valid as mine.&lt;/p&gt;
&lt;p&gt;T - I tried your way, and got irregular results. Converting to [-180,180] changes the directions in Dick&#039;s fourth case from {190,170,200} to {-170,170,-160}. Instead of varying by 30°, they now vary by 340°. The R-squared value of the resulting FORECAST is 0.014, compared to 0.980 for the lowest R-squared of the other cases.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick &#8211; Pretty clever. My approach was adding 360° to &#8220;selected&#8221; directions, getting the FORECAST, and MODding by 360. Basically the same, except I eyeballed the &#8220;selected&#8221; directions, rather than coming up with an algorithm like your test that they are within 180°. By the time I got there, I decided your approach was as valid as mine.</p>
<p>T &#8211; I tried your way, and got irregular results. Converting to [-180,180] changes the directions in Dick&#8217;s fourth case from {190,170,200} to {-170,170,-160}. Instead of varying by 30°, they now vary by 340°. The R-squared value of the resulting FORECAST is 0.014, compared to 0.980 for the lowest R-squared of the other cases.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: T</title>
		<link>http://www.dailydoseofexcel.com/archives/2009/04/28/calculating-wind-direction/#comment-39170</link>
		<dc:creator>T</dc:creator>
		<pubDate>Tue, 28 Apr 2009 14:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=2401#comment-39170</guid>
		<description>&lt;p&gt;I converted the wind directions to range from [-180,180] by using atan2(cos(theta),sin(theta)).  Then a linear interpolation like Forecast works just fine.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I converted the wind directions to range from [-180,180] by using atan2(cos(theta),sin(theta)).  Then a linear interpolation like Forecast works just fine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

