Sounds like your Weather Map stuff is progressing along quite nicely.
After having identified how we could do it, I haven't actually *done*
anything more about putting co-ordinates into pw_stations. (busily
hacking at the code for other parts of my site, so far)
However, having said that, I will note (probably mentioned this on the
list before) that I've been playing with AirSort
http://utenti.lycos.it/tingon/airsort/
It comes with a table (named airsort) with the following fields:
nome (italian for Name)
IATA
ICAO
citta (italian for City)
fields named
la_? and lo_? (where ? is each of g,p,s,d)
altezza (Italian for height)
lunghezza (Italian for length)
la_d is either N or S
lo_d is either E or W
So it's clear that the la_? and lo_? fields are the latitude and
longitude stored as seperate Degrees/Minutes/Seconds
It'd be pretty much trivial to write a short script to read ICAO and
LAT/LONG and inject them into newly created fields on the matching
pw_stations table. (I can do that)
Also we'd really also want someone to process through the original US
ICAO stations listing file to ensure we have all the latest listed
stations and correct co-ordinates. (I can do that, too)
So, basically, getting the data into pw_stations (and verifying it) is
work, but not difficult (I'd be happy to do it) what we need is someone
with better PHP skillz than myself and more eperience with hacking at
phpWeather to take those fields of information in the db and make good
use of them.
eg mostly importing them into structures when a station is referenced
from the database.
I've (badly) hacked at a "is it daylight savings time" into the
pw_images code which works for my locality, with the LAT+LONG data and
I've written a function which calculates Sunrise and Sunset from
date+lat+long. So if someone added code for "get lat+long+DST_info from
the db and inject it into the in-menory structures" to phpWeather, I can
polish off the rest of the work (ie getting the data into the database,
and work on pw_?? output routines) to get
- Daylight Savings for all stations
- calculated sunrise/sunset times for all stations
- return correct day/night images based on the above
Phil P
Jonas Kaufmann wrote:
> Hello,
>
> I updated my approach to generate weather maps for every country with
> phpWeather. You can see the current version at
> http://www.j0nes.de/wetter/. Currently I included maps for Denmark,
> France, Germany and Spain, but other maps can also be integrated.
>
> I found a very useful class named Geoclass at
> http://sourceforge.net/projects/geoclassphp/. Geoclass can draw maps
> out of .e00 textfiles (which are freely available for almost every
> country at http://www.maproom.psu.edu/dcw/) and also does the
> transformation from latitude/longitude values to x/y-positions on the
> map.
>
> A drawback is that I need several values for every map that you have
> to figure out first (try and error), for example the range in
> latitude/longitude for this country or the size of the map in pixels
> and thus the width-to-height-ratio.
>
> What about the latitude/longitude values for all weather stations?
> Phil, browsing the archive I found postings that you had an idea
> how to put those values in the pw_stations table. Did you advance in
> this?
>
> Cu
> Jonas Kaufmann
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> PHPWeather-devel mailing list
> PHP...@li...
> https://lists.sourceforge.net/lists/listinfo/phpweather-devel
>
>
|