<?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: More Examples with Parsing NDFD Data in PHP</title>
	<atom:link href="http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/</link>
	<description>PHP Tips &#38; Tools From Starters to Experts</description>
	<lastBuildDate>Sat, 17 Mar 2012 08:13:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-801</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 23 Dec 2011 01:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-801</guid>
		<description>&lt;p&gt;Hi Ron - The sections that show the variable structure are printing by using the var_dump() function.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Hi Ron &#8211; The sections that show the variable structure are printing by using the var_dump() function.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-800</link>
		<dc:creator>Ron</dc:creator>
		<pubDate>Fri, 23 Dec 2011 00:17:53 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-800</guid>
		<description>Hello Andrew


I have been &quot;playing&quot; with your scripts for the last few days. My question for you is; I cannot find any where is the scripts that have eithe echo or print. On the screen displays the data in arrays and I was able to display the max temp with the condition icons. The array still is displayed.


Can you explain to me how this data prints to the screen?    </description>
		<content:encoded><![CDATA[<p>Hello Andrew</p>
<p>I have been &#8220;playing&#8221; with your scripts for the last few days. My question for you is; I cannot find any where is the scripts that have eithe echo or print. On the screen displays the data in arrays and I was able to display the max temp with the condition icons. The array still is displayed.</p>
<p>Can you explain to me how this data prints to the screen?    </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roch</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-588</link>
		<dc:creator>Roch</dc:creator>
		<pubDate>Tue, 15 Jun 2010 06:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-588</guid>
		<description>Hi! I saw the wx parameter on this page and its exactly what I need.  But that piece of code isn&#039;t working for me.  Has anyone gotten this to work?</description>
		<content:encoded><![CDATA[<p>Hi! I saw the wx parameter on this page and its exactly what I need.  But that piece of code isn&#8217;t working for me.  Has anyone gotten this to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-390</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 05 Jan 2010 22:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-390</guid>
		<description>Thanks for the helpful code.  Is there is simple way to extract the hourly weather forecast?  Do you know if it is possible to got more weather data than every 3 hours?

Thanks!</description>
		<content:encoded><![CDATA[<p>Thanks for the helpful code.  Is there is simple way to extract the hourly weather forecast?  Do you know if it is possible to got more weather data than every 3 hours?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-336</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Wed, 15 Jul 2009 21:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-336</guid>
		<description>cloud9ine:

The NDFD data is what I use for something like the &quot;Forecast at a Glance&quot;, as shown in &lt;a href=&quot;http://phpstarter.net/samples/396/con_times.php&quot; rel=&quot;nofollow&quot;&gt;this example&lt;/a&gt;.  See &lt;a href=&quot;http://chasingweather.com/forecast/lat_lon/41.3969/-87.3274#area-forecast&quot; rel=&quot;nofollow&quot;&gt;this page&lt;/a&gt;, which is a site I made using this example.

Also, for the current conditions box, see this article: &lt;a href=&quot;http://phpstarter.net/2009/02/parse-current-weather-conditions-data-from-the-nws-in-php/&quot; rel=&quot;nofollow&quot;&gt;Parse Current Weather Conditions Data from the NWS in PHP&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>cloud9ine:</p>
<p>The NDFD data is what I use for something like the &#8220;Forecast at a Glance&#8221;, as shown in <a href="http://phpstarter.net/samples/396/con_times.php" rel="nofollow">this example</a>.  See <a href="http://chasingweather.com/forecast/lat_lon/41.3969/-87.3274#area-forecast" rel="nofollow">this page</a>, which is a site I made using this example.</p>
<p>Also, for the current conditions box, see this article: <a href="http://phpstarter.net/2009/02/parse-current-weather-conditions-data-from-the-nws-in-php/" rel="nofollow">Parse Current Weather Conditions Data from the NWS in PHP</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cloud9ine</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-333</link>
		<dc:creator>cloud9ine</dc:creator>
		<pubDate>Wed, 15 Jul 2009 15:09:19 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-333</guid>
		<description>Andrew,

Using NDFD Weather data to arrive at a simple daily kind of forecast seems a very tedious process. Is there some kind of SOAP / XML service which would provide just this information?

For example, is there a way to get information that represents the &quot;Forecast at a Glance&quot; and &quot;Current Conditions&quot; boxes on http://forecast.weather.gov/MapClick.php?CityName=Florissant&amp;state=MO&amp;site=LSX&amp;textField1=38.7974&amp;textField2=-90.3243 

This is especially important when you are trying to pick up data and represent elements in enumerated data types for ease of representation and decoding for a remote small embedded device.

Are you aware of any such sources I could use? Any help is appreciated. Thanks.</description>
		<content:encoded><![CDATA[<p>Andrew,</p>
<p>Using NDFD Weather data to arrive at a simple daily kind of forecast seems a very tedious process. Is there some kind of SOAP / XML service which would provide just this information?</p>
<p>For example, is there a way to get information that represents the &#8220;Forecast at a Glance&#8221; and &#8220;Current Conditions&#8221; boxes on <a href="http://forecast.weather.gov/MapClick.php?CityName=Florissant&#038;state=MO&#038;site=LSX&#038;textField1=38.7974&#038;textField2=-90.3243" rel="nofollow">http://forecast.weather.gov/MapClick.php?CityName=Florissant&#038;state=MO&#038;site=LSX&#038;textField1=38.7974&#038;textField2=-90.3243</a> </p>
<p>This is especially important when you are trying to pick up data and represent elements in enumerated data types for ease of representation and decoding for a remote small embedded device.</p>
<p>Are you aware of any such sources I could use? Any help is appreciated. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-330</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Fri, 03 Jul 2009 19:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-330</guid>
		<description>Sam what does your get_wxvalues function look like-sorry just learning</description>
		<content:encoded><![CDATA[<p>Sam what does your get_wxvalues function look like-sorry just learning</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-158</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Tue, 17 Mar 2009 23:02:05 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-158</guid>
		<description>Hey Sam, glad to hear you got it.  Good luck with the rest of your application!</description>
		<content:encoded><![CDATA[<p>Hey Sam, glad to hear you got it.  Good luck with the rest of your application!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-153</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 11 Mar 2009 17:03:38 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-153</guid>
		<description>just to update:
I was able to put the wx parameter data into an array using this code:
[sourcecode language=&#039;php&#039;]
$wxstr = $xml-&gt;data-&gt;parameters-&gt;weather-&gt;{&#039;weather-conditions&#039;};
		foreach (get_wxvalues($wxstr) as $node){
		        $attr1 = $node-&gt;value[&#039;coverage&#039;];
			$attr2 = $node-&gt;value[&#039;intensity&#039;];
			$attr3 = $node-&gt;value[&#039;weather-type&#039;];
			$atts =  $attr1 .&quot; &quot;. $attr2 .&quot; &quot;. $attr3;
			$combine[] =$atts;
		}	
[/sourcecode]

using andrew&#039;s code you can then easily combine arrays with time-layout as key! i don&#039;t know if this is the best way to do it, but it worked for me!</description>
		<content:encoded><![CDATA[<p>just to update:<br />
I was able to put the wx parameter data into an array using this code:</p>
<pre class="brush: php">
$wxstr = $xml-&amp;gt;data-&amp;gt;parameters-&amp;gt;weather-&amp;gt;{&#039;weather-conditions&#039;};
		foreach (get_wxvalues($wxstr) as $node){
		        $attr1 = $node-&amp;gt;value[&#039;coverage&#039;];
			$attr2 = $node-&amp;gt;value[&#039;intensity&#039;];
			$attr3 = $node-&amp;gt;value[&#039;weather-type&#039;];
			$atts =  $attr1 .&quot; &quot;. $attr2 .&quot; &quot;. $attr3;
			$combine[] =$atts;
		}
</pre>
<p>using andrew&#8217;s code you can then easily combine arrays with time-layout as key! i don&#8217;t know if this is the best way to do it, but it worked for me!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://phpstarter.net/2009/03/more-examples-with-parsing-ndfd-data-in-php/comment-page-1/#comment-142</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 05 Mar 2009 23:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://phpstarter.net/?p=396#comment-142</guid>
		<description>Andrew,
Have you been able to successfully parse the wx parameter? I&#039;m still failing miserably!
Sam</description>
		<content:encoded><![CDATA[<p>Andrew,<br />
Have you been able to successfully parse the wx parameter? I&#8217;m still failing miserably!<br />
Sam</p>
]]></content:encoded>
	</item>
</channel>
</rss>

