ezgliding / goigc

Package igc provides means to parse and analyse files in the IGC format
Apache License 2.0
19 stars 8 forks source link

NaN values for avg vario in calculated flight phases #56

Closed rochaporto closed 4 years ago

rochaporto commented 4 years ago
sqlite> select count(avg_vario) from phases where avg_vario = 'NaN';
1682

From the netcoupe 2016 db.

rochaporto commented 4 years ago
sqlite> select avg_vario, start_altitude, end_altitude, centroid_lat, centroid_lng from phase where avg_vario > 10 order by avg_vario desc limit 10;
NaN,455,455,0.0,0.0

Add special case for start_altitude == end_altitude, avg_vario = 0.