TrayWeather icon indicating copy to clipboard operation
TrayWeather copied to clipboard

[Suggestion] Rework Rain scale bar and colors in the Maps tab

Open adem4ik opened this issue 2 years ago • 7 comments

Version: 1.23.0

  • Open Maps
  • Switch to Rain

Result: Rain is barely visible on the map, especially 0-6 mm. The problem comes from the gray colors on the gray/white background.

Proposed result: Use similar scale bar and colors as on https://openweathermap.org/weathermap?basemap=map&cities=false&layer=radar&lat=30&lon=-20&zoom=5

Current scale bar: 0.1 2 6 8 10 14 16 20 26 32 42 48 52 70+ Proposed scale bar: 0.1 0.5 1 2 4 6 8 10 12 14 16 24 32 60+

image

adem4ik avatar Jul 09 '22 10:07 adem4ik

Hi @adem4ik.

Yes, that will be much more visible for the rain map. I'll change it for the next release. I was also thinking on modifying also the temperature map scale because here in Spain we're going to be 40+ ºC next week and the maximum in the map is 36. So all the map will be in red... I'm thinking in making the scale bars dynamic depending on the current weather conditions for better "reading" the maps. I'll tinker with it for a bit to see if it works.

Regards, Félix.

FelixdelasPozas avatar Jul 09 '22 17:07 FelixdelasPozas

Hello @adem4ik .

I've been playing a little bit with this and it's perfectly possible to do it, but only in the "advanced weather maps" of OpenWeatherMap. Those "Maps 2.0", as they call it, allows the developer to specify a range for map values and associate a color to each. It looks good indeed but it requires the developer subscription to OpenWeatherMaps (160€ a month), and that's something I can't afford right now for a free project. For now I'll use the free maps.

I'll leave the issue open so it remains visible, as this seems to be a frequently asked thing.

Regards, Félix.

FelixdelasPozas avatar Aug 12 '22 18:08 FelixdelasPozas

You could reach out to OpenWeatherMaps to see if they have any discounting/benefits for open source projects.

Alternatively potential costs could be deferred to users that specifically want the advanced functionality (using their own API keys or something) - although that seems like unnecessary feature creep :)

alystair avatar Sep 10 '22 03:09 alystair

@alystair Yes, I suppose the application could try first to use the 2.0 maps and if it gets a "unauthorized" message from the server go back to use the old 1.0 maps. I'm going to change the way the application works with "data providers" to add different weather info sites. I'll try to add it in then, or at least test it.

Regards, Félix.

FelixdelasPozas avatar Sep 16 '22 19:09 FelixdelasPozas

Just out of curiosity, while I understand the need to maybe adjust the scale a bit for the unusually high temps the world saw this year, does the Map 1.0 not already include color gradients and scales? Was your reason for changing the colors from default for a specific reason? Being in the USA, I only know of the different sites and apps I've used for weather here, but it seems that, at least here, scaling for precipitation always starts from the lightest of greens and progresses through green, then yellow, then orange, then red for the hardest of rain(and using hues based on blue for frozen precipitation).

I've always wondered why TW had set colors and not gradients, and used different colors than what I normally see everywhere else.

JohnLGalt avatar Sep 16 '22 19:09 JohnLGalt

The reason was that the lightgray colors where barely visible in the precipitation and cloud maps, so a gradient like the one proposed by @adem4ik (using greens instead of gray for lower values of rain) is much more visible. But in 1.0 maps you can ask for the rain map layer and the server will give you the map in a fixed gradient/colors then the application superimposes the rain layer to the "streetmap" layer (so OPW only gives you "the clouds" painted with the color it has, fixed). To modify the gradient as @adem4ik suggested is only available in the 2.0 maps API when you can specify temperature ranges and colors in a parameter called "palette". You can see the difference in parameters between 1.0 and 2.0 maps. The legend colors (what 2.0 calls palette) are fixed for 1.0 maps, so TW uses those colors.

FelixdelasPozas avatar Sep 16 '22 19:09 FelixdelasPozas

Makes sense. Thanks for the response and explanation.

JohnLGalt avatar Sep 17 '22 02:09 JohnLGalt