Fix docstring
This commit is contained in:
parent
944bae9303
commit
9de6ac0d56
1 changed files with 5 additions and 3 deletions
|
@ -49,8 +49,9 @@ def saturated_mixing_ratio(temp: float, pressure: float) -> float:
|
|||
|
||||
def mixing_ratio_temp(ratio: float, pressure: float) -> float:
|
||||
"""
|
||||
Return the temperature, in degrees celsius, of a given mixing ratio at a
|
||||
specified pressure, in millibar.
|
||||
Return the temperature, in degrees celsius, of a given mixing ratio of
|
||||
kilograms of moisture to kilograms of air, at a specified pressure, in
|
||||
millibar.
|
||||
"""
|
||||
c1 = 0.0498646455
|
||||
c2 = 2.4082965
|
||||
|
@ -59,7 +60,8 @@ def mixing_ratio_temp(ratio: float, pressure: float) -> float:
|
|||
c5 = 0.0915
|
||||
c6 = 1.2035
|
||||
|
||||
x = math.log10(ratio * pressure / (622.0 + ratio))
|
||||
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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue