<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1042242" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1042242</link>
    <description></description>
    <language>en</language>
          <item>
    <title>The first field is date and</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235954</link>
    <description> &lt;p&gt;The first field is date and time.  The 2nd to the last (penultimate) field is date and the last field is &quot;hour&quot;....  So, more or less, they just split the first column into two columns and put them on the right.&lt;/p&gt;
&lt;p&gt;..... maybe you are asking about the ICAO table, which you probably are.  It is the elevation of the ICAO station.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Dec 2008 16:45:44 +0000</pubDate>
 <dc:creator>Frank</dc:creator>
 <guid isPermaLink="false">comment 1235954 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>What does the last field</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235948</link>
    <description> &lt;p&gt;What does the last field represent?&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Dec 2008 14:42:15 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1235948 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I was going to guess why the</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235938</link>
    <description> &lt;p&gt;I was going to guess why the sizes are different, but there are too many possibilities....&lt;/p&gt;
&lt;p&gt;You will notice the name of the file...  It doesn&#039;t include non-USA ICAOs.  But, if you want those, let me know.  I don&#039;t know that the larger file is as clean as this one....&lt;/p&gt;
&lt;p&gt;CU,&lt;br /&gt;
Frank&lt;/p&gt;
&lt;p&gt;PS---  I changed the extension to txt from csv so I could upload it.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Dec 2008 06:41:57 +0000</pubDate>
 <dc:creator>Frank</dc:creator>
 <guid isPermaLink="false">comment 1235938 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Glad to help. 
I already had</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235934</link>
    <description> &lt;p&gt;Glad to help. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;I already had a table of 2,172 USA ICAOs along with their lats, longs, and elevations.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Hmmm...When I import my station list from the XML file in my previous post, I only get 2,009 records.  Can you attach your list of 2,172 stations?  I wonder which ones they aren&#039;t including.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Dec 2008 03:27:53 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1235934 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Amazing!
It works</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235933</link>
    <description> &lt;p&gt;Amazing!&lt;/p&gt;
&lt;p&gt;It works perfectly.&lt;/p&gt;
&lt;p&gt;I already had a table of 2,172 USA ICAOs along with their lats, longs, and elevations. I&#039;m not sure that they all have weather outputing capability, but I&#039;ve looked at perhaps 25 and they have worked.  Some seem to have more elements than others.&lt;/p&gt;
&lt;p&gt;Also have a table of &quot;all&quot;(?) ICAOs... perhaps 24,400.  Not real sure of the value of that, but fwiw.&lt;/p&gt;
&lt;p&gt;Thanks to you, I can now assemble this thing.  I was thinking that I had to find a formula that dealt specifically with ICAOs.  After reading your words above, it struck me that ICAOs are beside the point.&lt;/p&gt;
&lt;p&gt;Again, thanks again!&lt;br /&gt;
Frank&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Dec 2008 03:15:16 +0000</pubDate>
 <dc:creator>Frank</dc:creator>
 <guid isPermaLink="false">comment 1235933 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>I am working on a php</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235930</link>
    <description> &lt;blockquote&gt;&lt;p&gt;I am working on a php routine that returns the nearest icao code (like &quot;KMCI&quot;) from a set of coordinates, but that I don&#039;t know the right way to do that. I am sure lots of others have done that already, and I am hoping to take advantage of their hard work. That way you could get the appropriate weather data by lat/lon rather than have to know the icao code for access.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I can help you there.  Visit this link to get a list of all weather stations:&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.weather.gov/xml/current_obs/index.xml&quot; title=&quot;http://www.weather.gov/xml/current_obs/index.xml&quot;&gt;http://www.weather.gov/xml/current_obs/index.xml&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I use the SimpleXMLElement class to parse the file and insert it into the database.  Let me know if you want a code sample for that.  I have mine written up in a framework, so it won&#039;t run as a standalone script.&lt;/p&gt;
&lt;p&gt;Now for the part of querying for the closest station.  Check out this query from the weather project I&#039;m working on:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;SELECT *, SQRT(POW(69.1 * (latitude - $lat), 2) + POW(69.1 * ($lon - longitude) * COS(latitude / 57.3 ), 2 )) AS distance FROM Stations ORDER BY distance ASC LIMIT 1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Set the $lat and $lon variables to the location where you are trying to find the closest station, and the closest one will be returned.  I will admit that I had to Google for this query, I didn&#039;t write it myself.&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 Dec 2008 00:53:27 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1235930 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>The precipitation source is</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235927</link>
    <description> &lt;p&gt;The precipitation source is working well.  I did send a request for the csv file via the url link and a file was returned.  I then imported it into mySQL and it is available.&lt;/p&gt;
&lt;p&gt;The site is:&lt;/p&gt;
&lt;p&gt;National Operational Hydrologic Remote Sensing Center&lt;br /&gt;
Interactive Snow Information&lt;/p&gt;
&lt;p&gt;(It includes all forms of  precipitation as far as I can tell.)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nohrsc.noaa.gov/interactive/html/graph.html?station=KMCI&quot; title=&quot;http://www.nohrsc.noaa.gov/interactive/html/graph.html?station=KMCI&quot;&gt;http://www.nohrsc.noaa.gov/interactive/html/graph.html?station=KMCI&lt;/a&gt; is a good start, you can enter any icao from there.&lt;/p&gt;
&lt;p&gt;From that URL, you can access 24 different outputs, which are either graphic or text.  The one I will use is #13, which is a csv file.&lt;/p&gt;
&lt;p&gt;There is quite a bit of information on that page.&lt;/p&gt;
&lt;p&gt;I am working on a php routine that returns the nearest icao code (like &quot;KMCI&quot;) from a set of coordinates, but that I don&#039;t know the right way to do that.  I am sure lots of others have done that already, and I am hoping to take advantage of their hard work.  That way you could get the appropriate weather data by lat/lon rather than have to know the icao code for access.&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Dec 2008 23:12:22 +0000</pubDate>
 <dc:creator>Frank</dc:creator>
 <guid isPermaLink="false">comment 1235927 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Here are the four lines of</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235926</link>
    <description> &lt;blockquote&gt;&lt;p&gt;Here are the four lines of code I use to get SS &amp;amp; SR. I assume they are always available in PHP 5(?)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Sweet, thanks for posting those functions.  I just looked those up on php.net, and yes, they are available in PHP 5+.&lt;/p&gt;
&lt;p&gt;Where did you find that CSV data?  Is there a page that describes it?&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Dec 2008 22:54:55 +0000</pubDate>
 <dc:creator>pr0gr4mm3r</dc:creator>
 <guid isPermaLink="false">comment 1235926 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>You know... I got to looking</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235923</link>
    <description> &lt;p&gt;You know... I got to looking at the link you provided and found something that may work at:  (the link is for Kansas City area)&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.nohrsc.noaa.gov/interactive/html/graph.html?station=KMCI&amp;amp;w=600&amp;amp;h=400&amp;amp;uc=0&amp;amp;by=2008&amp;amp;bm=12&amp;amp;bd=7&amp;amp;bh=6&amp;amp;ey=2008&amp;amp;em=12&amp;amp;ed=9&amp;amp;eh=6&amp;amp;data=13&amp;amp;units=0&amp;amp;x=0&amp;amp;y=0&quot; title=&quot;http://www.nohrsc.noaa.gov/interactive/html/graph.html?station=KMCI&amp;amp;w=600&amp;amp;h=400&amp;amp;uc=0&amp;amp;by=2008&amp;amp;bm=12&amp;amp;bd=7&amp;amp;bh=6&amp;amp;ey=2008&amp;amp;em=12&amp;amp;ed=9&amp;amp;eh=6&amp;amp;data=13&amp;amp;units=0&amp;amp;x=0&amp;amp;y=0&quot;&gt;http://www.nohrsc.noaa.gov/interactive/html/graph.html?station=KMCI&amp;amp;w=60...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This allows you to set begin and end times and a csv file will be returned. &lt;/p&gt;
&lt;p&gt;We shall see...&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Dec 2008 20:35:49 +0000</pubDate>
 <dc:creator>Frank</dc:creator>
 <guid isPermaLink="false">comment 1235923 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Rather than forecasted data,</title>
    <link>https://www.webmaster-forums.net/web-programming-and-application-development/information-php-soap#comment-1235922</link>
    <description> &lt;p&gt;Rather than forecasted data, I would like to find recent past data for precipitation.  E.G. 1&quot; rain in past 6 hours...  2&quot; snow if past 24 hours, etc...  &lt;/p&gt;
&lt;p&gt;I&#039;ve looked everywhere I can think of and have had no luck. It would seem that that information should be readily available and it probably is, but I just haven&#039;t looked under the right rock.&lt;/p&gt;
&lt;p&gt;Thanks again for your interest.&lt;/p&gt;
&lt;p&gt;Frank&lt;/p&gt;
 </description>
     <pubDate>Tue, 09 Dec 2008 20:00:33 +0000</pubDate>
 <dc:creator>Frank</dc:creator>
 <guid isPermaLink="false">comment 1235922 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
