Browse Source

Add parse_angle.

debian-sid
Tom Payne 14 years ago
parent
commit
cc90b43a83
  1. 4
      igc2kmz/exif.py

4
igc2kmz/exif.py

@ -238,6 +238,10 @@ def exif(data):
return result
def parse_angle(value):
return sum(n / d for n, d in zip([float(n) / d for n, d in value], (1, 60, 3600)))
DATETIME_RE = re.compile(r'(\d+):(\d+):(\d+)\s+(\d+):(\d+):(\d+)\0\Z')

Loading…
Cancel
Save