diff --git a/bin/geomag.py b/bin/geomag.py
index 7455668a9cac4faf8f0a874f536d864b1ad034f3..7ea04ca55dd07b7d7392e22c8a46c0486334e33b 100755
--- a/bin/geomag.py
+++ b/bin/geomag.py
@@ -135,6 +135,7 @@ def main():
                 interval=args.interval,
                 locationCode=locationcode,
                 tag=args.output_edge[2])
+                locationCode=locationcode)
     else:
             print >> sys.stderr, "Missing required output directive"