Use exponentiation in vapor pressure calculation
This commit is contained in:
parent
a8d1e75216
commit
8969154ecf
1 changed files with 2 additions and 2 deletions
|
@ -2,12 +2,12 @@ LAPSE_RATE_MOIST = 4.0 # degrees C per km
|
|||
LAPSE_RATE_DRY = 9.8
|
||||
|
||||
def vapor_pressure(dewpoint: float) -> float:
|
||||
return 6.11 * 10 * (
|
||||
return 6.11 * 10 ** (
|
||||
(7.5 * dewpoint) / (237.3 * dewpoint)
|
||||
)
|
||||
|
||||
def saturated_vapor_pressure(temp: float) -> float:
|
||||
return 6.11 * 10 * (
|
||||
return 6.11 * 10 ** (
|
||||
(7.5 * temp) / (237.3 * temp)
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue