Pirate-Weather / pirate-weather-code

Code for the Pirate Weather API
https://pirateweather.net/en/latest/
GNU Affero General Public License v3.0
5 stars 0 forks source link

Apparent temperature fix #12

Closed cloneofghosts closed 1 month ago

cloneofghosts commented 1 month ago

@alexander0042 I was looking through the code and thought to compare the apparent temperature formula to the one in Breezy Weather. I noticed the one you setup didn't have water vapor pressure as a separate variable which is what I did here. If you prefer to have it all as one formula you just need to add brackets around the water vapor formula (rh / 100 × 6.105 × exp(17.27 × Ta / (237.7 + Ta)) and it will also fix the issue.