Browse Source

Also classify low speed and climbing as a thermal.

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

4
igc2kmz/track.py

@ -153,7 +153,9 @@ class Track(object):
for sl in util.condense(util.runs_where(dive), self.t, 30):
if self.coords[sl.stop].ele - self.coords[sl.start].ele < -100:
state[sl] = [DIVE] * (sl.stop - sl.start)
thermal = (self.progress[i] < 0.9 and self.climb[i] > 0.0
thermal = ((self.progress[i] < 0.9 and self.climb[i] > 0.0)
or (self.speed[i] < 10.0 and self.climb[i] > 0.0)
or (self.climb[i] > 1.0)
for i in xrange(0, n - 1))
for sl in util.condense(util.runs_where(thermal), self.t, 60):
state[sl] = [THERMAL] * (sl.stop - sl.start)

Loading…
Cancel
Save