Use a constant factor
This commit is contained in:
parent
8ee17da826
commit
ce93b5e7b1
1 changed files with 3 additions and 1 deletions
|
@ -73,7 +73,9 @@ def pressure_height(pressure: float, surface: float=PRESSURE_MSL) -> float:
|
|||
Return the approximate altitude, in meters, for a given pressure in
|
||||
millibar.
|
||||
"""
|
||||
return (1 - (pressure / surface) ** 0.190284) * 145366.45 * 0.3107596
|
||||
factor = 1.0195528177497388
|
||||
|
||||
return (1 - (pressure / surface) ** 0.190284) * 145366.45 * 0.3048 * factor
|
||||
|
||||
def lapse(temp: float, delta: float, rate=LAPSE_RATE_DRY) -> float:
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue