Author Topic: Saratoga heat color words for muggy conditions  (Read 734 times)

0 Members and 1 Guest are viewing this topic.

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 949
    • LexMAWeather
Saratoga heat color words for muggy conditions
« on: July 11, 2015, 05:55:21 PM »
I noticed the other day when it was in the upper 70s (°F) and the dew point was 71, the heat "color" word chosen was "Comfortable". Looking at the code, I see that the humidity doesn't come into play until the temperature gets up into the heat index range (80-ish). The problem is that if I report "Comfortable" for that particular situation, no one is going to take me seriously. :)  "Un" comfortable would be acceptable.

So I'm wondering two things:

1) What is the genesis of the algorithm, the ranges chosen, etc.

2) Has anyone else modified this code to deal with muggy (60s dew points) and oppressive (70s dew points) to expand the "heat" word to be more in tune with what it feels like due to the humidity, especially with the temperature below 80°F?

Thanks!
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 949
    • LexMAWeather
Re: Saratoga heat color words for muggy conditions
« Reply #1 on: July 26, 2015, 09:44:40 PM »
Following up on this as I made a change and I've been happy with the results.

Essentially, I added an additional dew point check (both PHP and javascript) if the color word resolves to "warm" or "comfortable"; If the DP > 21°C, I instead display "Very Muggy"; else if > 16°C, "Muggy". Otherwise, I leave it as-is.

Having gone through a mix of both humid and not-so-humid days, it has pretty accurately reflected how it felt.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

 

anything