aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/run.py b/run.py
index 7439bfb..9ba7024 100755
--- a/run.py
+++ b/run.py
@@ -4,6 +4,13 @@ import sys
import yaml
import matplotlib.pyplot as plt
+from metpy.units import units
+
+# Define custom gpm and gpdm units. The default gpm in metpy is aliased to meter.
+# We need the correct definition
+units.define('_gpm = 9.80665 * J/kg')
+units.define('_gpdm = 10 * _gpm')
+
FILE = 'config.yaml'
if len(sys.argv) > 1:
FILE = sys.argv[1]