Slight improvements in docstrings
This commit is contained in:
parent
5d1a2bbe54
commit
8b8cfb3add
1 changed files with 4 additions and 3 deletions
|
@ -12,14 +12,15 @@ def kelvin(c: float) -> float:
|
||||||
|
|
||||||
def vapor_pressure(dewpoint: float) -> float:
|
def vapor_pressure(dewpoint: float) -> float:
|
||||||
"""
|
"""
|
||||||
Return the pressure of vapor in a parcel of a given dewpoint.
|
Return the pressure, in millibar, of vapor in a parcel of a given
|
||||||
|
dewpoint.
|
||||||
"""
|
"""
|
||||||
return 6.11 * 10 ** ((7.5 * dewpoint) / (237.3 + dewpoint))
|
return 6.11 * 10 ** ((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, in millbar, at which the vapor and condensation of a
|
||||||
given temperature are at equilibrium.
|
parcel of a given temperature are at equilibrium.
|
||||||
"""
|
"""
|
||||||
return 6.11 * 10 ** ((7.5 * temp) / (237.3 + temp))
|
return 6.11 * 10 ** ((7.5 * temp) / (237.3 + temp))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue