From 7604b28ff6e8293af383ae7328ea2285b3c9bba5 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 29 Apr 2015 16:01:13 -0400 Subject: Debug. --- hdist.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hdist.py') diff --git a/hdist.py b/hdist.py index d5d7aec..3f62eb3 100644 --- a/hdist.py +++ b/hdist.py @@ -12,10 +12,10 @@ def hdist(a, b): rearth = const(6371) deg2rad = const(3.141592653589793 / 180) - lat1 = a[:, 1] * deg2rad - lon1 = a[:, 0] * deg2rad - lat2 = b[:, 1] * deg2rad - lon2 = b[:, 0] * deg2rad + lat1 = a[:, 0] * deg2rad + lon1 = a[:, 1] * deg2rad + lat2 = b[:, 0] * deg2rad + lon2 = b[:, 1] * deg2rad dlat = abs(lat1-lat2) dlon = abs(lon1-lon2) -- cgit v1.2.3