Hack: Apply magic numbers to match other charts
This commit is contained in:
parent
0303060343
commit
83e8b1a7c1
1 changed files with 2 additions and 2 deletions
|
@ -73,7 +73,7 @@ def pressure_height(pressure: float, surface: float=PRESSURE_MSL) -> float:
|
||||||
Return the approximate altitude, in meters, for a given pressure in
|
Return the approximate altitude, in meters, for a given pressure in
|
||||||
millibar.
|
millibar.
|
||||||
"""
|
"""
|
||||||
return (1 - (pressure / surface) ** 0.190284) * 145366.45 * 0.3048
|
return (1 - (pressure / surface) ** 0.190284) * 145366.45 * 0.3107596
|
||||||
|
|
||||||
def lapse(temp: float, delta: float, rate=LAPSE_RATE_DRY) -> float:
|
def lapse(temp: float, delta: float, rate=LAPSE_RATE_DRY) -> float:
|
||||||
"""
|
"""
|
||||||
|
@ -121,7 +121,7 @@ def loft_parcel(start_temp: float,
|
||||||
except OverflowError:
|
except OverflowError:
|
||||||
break
|
break
|
||||||
|
|
||||||
temp = lapse(temp, height - last_height, 1.08*rate)
|
temp = lapse(temp, height - last_height, 1.09*rate)
|
||||||
|
|
||||||
yield temp, pressure
|
yield temp, pressure
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue