Reformat mixing_ratio_temp()
This commit is contained in:
parent
8e474da691
commit
eed1cdf560
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue