diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-04-29 16:01:13 -0400 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-04-29 16:01:13 -0400 |
commit | 7604b28ff6e8293af383ae7328ea2285b3c9bba5 (patch) | |
tree | bc4084ad093f3f3cd3a327736eebab96414aa2cf /hdist.py | |
parent | f768d3e770216d4227ffd989cf98f1628fc476a3 (diff) | |
download | taxi-7604b28ff6e8293af383ae7328ea2285b3c9bba5.tar.gz taxi-7604b28ff6e8293af383ae7328ea2285b3c9bba5.zip |
Debug.
Diffstat (limited to 'hdist.py')
-rw-r--r-- | hdist.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |