Skip to content

Commit

Permalink
fix inHg -> hPa conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantmonkey committed Jan 24, 2013
1 parent 5860aca commit b0712be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metar.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def parse(data):
m = pressure_re.search(w.metar)
if m.group(1) == 'A':
# convert inHg to hPa
w.pressure = round(int(m.group(2)) / 100 * 3.386389)
w.pressure = round(float(m.group(2)) * 0.3386389)
else:
w.pressure = int(m.group(2))

Expand Down

0 comments on commit b0712be

Please sign in to comment.