SignalK / signalk-derived-data

Generates deltas for values derived from signalk values
Apache License 2.0
18 stars 31 forks source link

Dew point algorithm does not return correct value #72

Open oyve opened 3 years ago

oyve commented 3 years ago

ACTUAL: environment.outside.temperature | 305.9 (K) environment.outside.humidity | 60.288 (RATIO) environment.outside.dewPointTemperature | 401.05639938388276 (K)

EXPECTED: outside.dewPointTemperature should be closer to 297 (K)

A fix could be to use a weather formula library I created some time back, and who supports several different algorithms and picks the best one based on different input ranges. https://github.com/oyve/weather-formulas