This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import numpy | |
import sys, os | |
from lxml import etree | |
Re = 6371000 # Earth radius in meters | |
# Extract the latitute and longitude as a tuple in radians from a <trkpt> element | |
def extract(trkpt) : |