Author Topic: UV index forecast  (Read 1611 times)

0 Members and 1 Guest are viewing this topic.

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
UV index forecast
« on: April 30, 2009, 01:53:33 PM »

I have a question about the script. Does anyone know where it gets the UV forecast? I installed the script and got it up and running. It shows today's UV forecast for my Lat/Lon is "6.6 High". However, it has been 100% overcast all day with 100% chance of rain. In fact, it's been raining/sprinkling for the past couple hours. Wunderground's UV forecast map puts my area at a UV Index of about 2.

I know someone will ask if I entered my Lat & Lon correctly, so here they are to answer it before it's asked:

// -------------Settings ---------------------------------
  $myLat = '43.032';    //North=positive, South=negative decimal degrees
  $myLong = '-83.587';  //East=positive, West=negative decimal degrees
  $ourTZ = "America/New_York";  //NOTE: this *MUST* be set correctly to

I also had New_York replaced with Detroit, and I got the same forecast.

Thanks!
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9279
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
UV index forecast
« Reply #1 on: April 30, 2009, 02:26:16 PM »
Kevin,
I think you're using the get-UV-forecast-inc.php script.  If so, then the forecast comes from www.temis.nl .. they do world-wide, multiday forecasts and the script uses your lat/long to extract the data from them.

Their site currently shows your lat/long's data as
Quote

  Date            UV
                      index    ozone column
  30 Apr 2009    6.6      341.9 DU
  1 May 2009    6.4      351.4 DU
  2 May 2009    6.2      364.7 DU
  3 May 2009    6.2      364.6 DU
  4 May 2009    6.6      349.3 DU
  5 May 2009    6.6      351.0 DU
  6 May 2009    7.7      316.6 DU
  7 May 2009    8.3      301.7 DU
  8 May 2009    7.2      333.5 DU

The forecast isn't determined by time zone ..it's by lat/long. And it's a clear sky forecast, so clouds may reduce it greatly.  The timezone is only used to adjust the array values so today's date in your timezone is always the [0] element in the returned arrays.

Best regards,
Ken
« Last Edit: April 30, 2009, 02:51:43 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline WeatherBeacon

  • Chief
  • Forecaster
  • *****
  • Posts: 1369
    • http://www.wxbeacon.com
UV index forecast
« Reply #2 on: April 30, 2009, 03:51:10 PM »

Kevin,
I think you're using the get-UV-forecast-inc.php script. . .

Oh for crying out loud! I meant to post my question here:

   http://www.wxforum.net/index.php?topic=4081.0

Yes, I am using the get-UV-forecast-inc.php script. Can you move my post to there, Ken?

So if it's a clear sky UV forecast, it probably is of little use to us Michiganders? Michigan is frequently overcast.

Thanks, Ken!
Mae govannen!
Kevin  (Member AMS) http://www.wxbeacon.com               Genesee County, Michigan
Hardware:  Davis Vantage Pro Wireless, Midland WR-300
Software: VWS 14.01p43, WeatherFlash, & GRLevel3