Fix typos in vapor pressure routines

This commit is contained in:
XANTRONIX 2025-03-05 00:34:56 -05:00
parent 0aad130001
commit fe4b980ac9

View file

@ -8,18 +8,14 @@ def vapor_pressure(dewpoint: float) -> float:
""" """
Return the pressure of vapor in a parcel of a given dewpoint. Return the pressure of vapor in a parcel of a given dewpoint.
""" """
return 6.11 * 10 ** ( return 6.11 * 10 ** ((7.5 * dewpoint) / (237.3 + dewpoint))
(7.5 * dewpoint) / (237.3 * dewpoint)
)
def saturated_vapor_pressure(temp: float) -> float: def saturated_vapor_pressure(temp: float) -> float:
""" """
Return the pressure at which the vapor and condensation of a parcel of a Return the pressure at which the vapor and condensation of a parcel of a
given temperature are at equilibrium. given temperature are at equilibrium.
""" """
return 6.11 * 10 ** ( return 6.11 * 10 ** ((7.5 * temp) / (237.3 + temp))
(7.5 * temp) / (237.3 * temp)
)
def mixing_ratio(dewpoint: float, pressure: float) -> float: def mixing_ratio(dewpoint: float, pressure: float) -> float:
""" """