Use 200mb height calculation for <=250mb
This commit is contained in:
parent
fb078eb7c4
commit
bca617b318
1 changed files with 4 additions and 4 deletions
|
@ -123,7 +123,7 @@ class RAOBObs():
|
|||
def calc_500mb_height(self, height: float) -> float:
|
||||
return 10.0 * height
|
||||
|
||||
def calc_200mb_height(self, height: float) -> float:
|
||||
def calc_250mb_height(self, height: float) -> float:
|
||||
return 10.0 * (1000.0 + height)
|
||||
|
||||
def parse_height_pressure(self, token: str):
|
||||
|
@ -150,10 +150,10 @@ class RAOBObs():
|
|||
height = self.calc_1000mb_height(float(num))
|
||||
elif pressure <= 850 and pressure > 500:
|
||||
height = self.calc_850mb_height(float(num))
|
||||
elif pressure <= 500 and pressure > 200:
|
||||
elif pressure <= 500 and pressure > 250:
|
||||
height = self.calc_500mb_height(float(num))
|
||||
elif pressure <= 200:
|
||||
height = self.calc_200mb_height(float(num))
|
||||
elif pressure <= 250:
|
||||
height = self.calc_250mb_height(float(num))
|
||||
else:
|
||||
height = float(num)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue