|
|
|
@ -80,11 +80,11 @@ meas = tree.get_element_by_id(f'MainContent_ctl{stn_id:02}_lblSummary')
|
|
|
|
|
description = tree.get_element_by_id(f'MainContent_ctl{stn_id:02}_lblTitle')
|
|
|
|
|
|
|
|
|
|
# Parse column names
|
|
|
|
|
text = re.split(':', meas.text)
|
|
|
|
|
parameters = text[::3]
|
|
|
|
|
entries = [re.split('(\D+)$', t) for t in text[1::3]]
|
|
|
|
|
values = [float(e[0]) for e in entries]
|
|
|
|
|
units = [e[1] for e in entries]
|
|
|
|
|
text = re.split(':\s|(m|s|knots|deg)\s', meas.text + ' ')
|
|
|
|
|
parts = [t for t in text if t]
|
|
|
|
|
parameters = [p.strip() for p in parts[::3]]
|
|
|
|
|
values = [float(p) for p in parts[1::3]]
|
|
|
|
|
units = parts[2::3]
|
|
|
|
|
columns = [f'{p} ({u})' for p, u in zip(parameters, units)]
|
|
|
|
|
|
|
|
|
|
# Parse time
|
|
|
|
|