Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

Commit c26a1781 authored by Camilla Dodge Koslowsky Harris's avatar Camilla Dodge Koslowsky Harris
Browse files

added parsing for the trajectory positions and datetimes

parent 5cf703b8
......@@ -136,7 +136,22 @@ def _trajectory_geometry(geometry_params):
elif '#START' in line:
do_read = True
geometry_points = {
'npoints': len(trajectory_data)
'npoints': len(trajectory_data),
'X': [float(trajectory_point[7])
for trajectory_point in trajectory_data],
'Y': [float(trajectory_point[8])
for trajectory_point in trajectory_data],
'Z': [float(trajectory_point[9])
for trajectory_point in trajectory_data],
'time': [np.datetime64(
f'{trajectory_point[0]}'
f'-{trajectory_point[1]}'
f'-{trajectory_point[2]}'
f'T{trajectory_point[3]}'
f':{trajectory_point[4]}'
f':{trajectory_point[5]}'
f'.{trajectory_point[6]}')
for trajectory_point in trajectory_data]
}
return geometry_points
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment