From b0712be41b6e68188336550fb89de37c17cf7342 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Thu, 24 Jan 2013 10:54:06 -0500 Subject: [PATCH] fix inHg -> hPa conversion --- metar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metar.py b/metar.py index 1f12793..de63c9e 100644 --- a/metar.py +++ b/metar.py @@ -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))