Reformat mixing_ratio_temp()

This commit is contained in:
XANTRONIX 2025-03-18 10:22:21 -04:00
parent 8e474da691
commit eed1cdf560

View file

@ -64,8 +64,9 @@ def mixing_ratio_temp(ratio: float, pressure: float) -> float:
w = ratio * 1000.0
x = math.log10(w * pressure / (622.0 + w))
return celsius(math.pow(10.0, ((c1 * x) + c2)) - c3 + \
(c4 * math.pow((math.pow(10, (c5 * x)) - c6), 2)))
temp = (10.0 ** ((c1 * x) + c2)) - c3 + (c4 * ((10 ** (c5 * x)) - c6) ** 2)
return celsius(temp)
def lcl(temp: float, dewpoint: float) -> float:
"""