Pirate-Weather / pirateweather

Code and documentation for the Pirate Weather API
Apache License 2.0
649 stars 29 forks source link

Thunderstorms #235

Open cloneofghosts opened 4 months ago

cloneofghosts commented 4 months ago

Describe the feature

I was thinking about this the past few days but it would be nice if the API could forecast Thunderstorms. I know that DarkSky didn't include a thunderstorm icon but they did always say to have it defined in case it ever got implemented.

For the forecasts you could probably use a combination of Lifted Index and CAPE to show the icon and probably for the current conditions as well? HRRR subhourly doesn't have Lifted Index or CAPE and there is #212 but it seems like there is no datasets available.

The one thing I'm not 100% on is how to show the icon. For hourly it would make sense if LI/CAPE is above the threshold with precipitation > 0.02 and probability >30% or do we want to show it for a lower probability amount? For the daily icon should it still be based on average LI/CAPE or would it be if there are thunderstorms predicted at any point during the day show the icon?

Acknowledgements