Remove unnecessary saturated_vapor_pressure()
This commit is contained in:
parent
f69daea4ac
commit
1b5f126687
1 changed files with 1 additions and 8 deletions
|
@ -24,13 +24,6 @@ def vapor_pressure(dewpoint: float) -> float:
|
|||
"""
|
||||
return 6.11 * 10 ** ((7.5 * dewpoint) / (237.3 + dewpoint))
|
||||
|
||||
def saturated_vapor_pressure(temp: float) -> float:
|
||||
"""
|
||||
Return the pressure, in millbar, at which the vapor and condensation of a
|
||||
parcel of a given temperature are at equilibrium.
|
||||
"""
|
||||
return 6.11 * 10 ** ((7.5 * temp) / (237.3 + temp))
|
||||
|
||||
def mixing_ratio(dewpoint: float, pressure: float) -> float:
|
||||
"""
|
||||
Return the amount, in kilograms, of water vapor versus dry air in a parcel
|
||||
|
@ -45,7 +38,7 @@ def saturated_mixing_ratio(temp: float, pressure: float) -> float:
|
|||
Return the maximum amount, in kilograms, of water vapor a parcel of a
|
||||
given temperature and pressure can hold.
|
||||
"""
|
||||
es = saturated_vapor_pressure(temp)
|
||||
es = vapor_pressure(temp)
|
||||
|
||||
return (0.62197 * es) / (pressure - es)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue