kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Fix log_to_kml.py to handle log file header line.
rodzic
5fd675c188
commit
50b684f26b
|
@ -54,6 +54,10 @@ def read_telemetry_csv(filename,
|
|||
# Split line by comma delimiters.
|
||||
_fields = line.split(delimiter)
|
||||
|
||||
if _fields[0] == 'timestamp':
|
||||
# First line in file - header line.
|
||||
continue
|
||||
|
||||
# Attempt to parse fields.
|
||||
_datetime = parse(_fields[datetime_field])
|
||||
_latitude = float(_fields[latitude_field])
|
||||
|
|
Ładowanie…
Reference in New Issue