pirateweather
pirateweather copied to clipboard
UV index values
Hello, I'm not sure if this is a bug or if different services calculate the UV index using different methods. However, PirateWeather API returns a lower UV index than other weather services.
For example, here are different services reporting the UV index for the same location at the same time. In the table below, I have listed the maximum UV index for the day as reported by each service.
Location: Barcelona (Europe) :: lat=42.38563 lon=-2.158 Time 19 July 2023
Barcelona, Spain | |
---|---|
Service | UV Index |
Pirateweather (merrysky.net) | 8.29 |
weatheronline.co.uk | 9 |
temis.nl | 9.7 |
weather.com | 9 |
spotwx.com | 9.1 |
theweathernetwork.com/ | 10 |
https://www.weatheronline.co.uk/Spain/Barcelona/UVindex.htm https://www.temis.nl/uvradiation/nrt/uvindex.php?lon=-2.158&lat=42.38563 https://weather.com/weather/hourbyhour/l/0ce8d487db0a25631ee2017ddbe068bfba0de2b24de23f0b82c95863724f3a86 https://spotwx.com/products/grib_index.php?model=gfs_uv&lat=42.38563&lon=-2.158 https://www.theweathernetwork.com/en/city/es/catalunya/barcelona/uv
Location: Denver (Colorado, USA) :: lat=39.75003 lon= -104.9719 Time 19 July 2023
Denver, CO, USA | |
---|---|
Service | UV Index |
Pirateweather (merrysky.net) | 7.56 |
weatheronline.co.uk | 9 |
temis.nl | 11.3 |
weather.com | 9 |
spotwx.com | 9.2 |
theweathernetwork.com/ | 10 |
https://www.weatheronline.co.uk/Colorado/Denver/UVindex.htm https://www.theweathernetwork.com/en/city/us/colorado/denver/uv https://spotwx.com/products/grib_index.php?model=gfs_uv&lat=39.75003&lon=-104.9719
Thanks for opening an issue- you're definitely in the right place. UV index is kind of a tricky parameter. It's the only one that comes from a different model, so the processing flow is different. That being said, it should broadly align with the other sources, so these differences do seem weird.
Do you mind checking what you're seeing in PW vs SpotWX? It's another site that displays the raw model results, so Pirate Weather should match 1:1 with what it's showing for UV
Hello, these are the values that i am currently seeing in http://merrysky.net and http://spotwx.com .
Location: Barcelona (Europe) - Time 19 July 2023
https://spotwx.com/products/grib_index.php?model=gfs_uv&lat=41.38804&lon=2.17001&tz=Europe/Madrid&label=Barcelona,%20Catalu%C3%B1a
https://merrysky.net/forecast/barcelona/si
###_ Location: Denver (Colorado, USA) Time 19 July 2023_ https://spotwx.com/products/grib_index.php?model=gfs_uv&lat=39.74001&lon=-104.99202&tz=America/Denver&label=Denver,%20Colorado
https://merrysky.net/forecast/denver/si
I've been watching this over the last few days and this is definitely an issue! I'm working om revamping some of the processing flows now, so I'm going to take a look at this as part of that
Been using the V2 development endpoint and I've noticed that the UV index actually seems higher when compared to other sites. Most sites have the current UV at 3 or 4 whereas PW (both dev and prod APIs) are reporting a UV of 5.
The V2 development API is slightly lower than the production API but not by much. I assume much hasn't changed here when it comes to the development API?
Have you noticed any other issues with this? I do notice that it varies from SpotWX; however, it seems to be pretty consistent with other sources. There was a very significant change in UV calculation approach between V1 and V2, so should have been fixed as part of that; however, it is possible that something else is off here
For the most part the UV Index seems fairly similar to what other sites are showing. There are times where the UV Index from PW is higher than other sites and times where its lower but it's hard to tell as it seems like every site says something different.
One thing I noticed is the first night hour usually has a very small UV Index value (<0.1) but I'm not sure if that's a bug or not.