Implement pressure_height()
This commit is contained in:
parent
2f492dd16c
commit
65c500b9be
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,13 @@ def lcl(temp: float, dewpoint: float) -> float:
|
|||
"""
|
||||
return (temp - dewpoint) / 0.008
|
||||
|
||||
def pressure_height(pressure: float) -> float:
|
||||
"""
|
||||
Return the approximate altitude, in meters, for a given pressure in
|
||||
millibar.
|
||||
"""
|
||||
return (1 - (pressure / 1013.25) ** 0.190284) * 145366.45 * 0.3048
|
||||
|
||||
def lapse(temp: float, rate: float, delta: float) -> float:
|
||||
"""
|
||||
Return the temperature of a parcel cooled at either the dry or moist lapse
|
||||
|
|
Loading…
Add table
Reference in a new issue