Everybody likes docstrings, right?
This commit is contained in:
parent
aac34375d7
commit
69e01d73e1
1 changed files with 7 additions and 0 deletions
|
@ -2,11 +2,18 @@ LAPSE_RATE_MOIST = 4.0 # degrees C per km
|
||||||
LAPSE_RATE_DRY = 9.8
|
LAPSE_RATE_DRY = 9.8
|
||||||
|
|
||||||
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 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
|
||||||
|
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)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue