diff --git a/lib/station_coordinates.py b/lib/station_coordinates.py index 694def704bdd1e3fec6dc202f50db2b8f53e64f8..2d694b46b74e361672bc27e5cee1b6b866725ac0 100644 --- a/lib/station_coordinates.py +++ b/lib/station_coordinates.py @@ -22,8 +22,8 @@ def parse_station_coordinates() -> dict: if line and line.startswith('PIC.Core.'): key, value = line.split('=') key = key.replace('PIC.Core.', '').replace('.phaseCenter', '').strip() - eval_value = literal_eval(value) - field_coords = {'coordinate_system': 'ITRF2005', 'epoch': '2017.5' if 'DE605' in key else '2015.5', 'x': eval_value[0], 'y': eval_value[1], 'z': eval_value[2]} # 'coordinate_system': 'ITRF2005' is correct or is this 'WGS84'?! + eval_value = literal_eval(value.strip()) + field_coords = {'coordinate_system': 'ITRF2005', 'epoch': '2017.5' if 'DE605' in key else '2015.5', 'x': eval_value[0], 'y': eval_value[1], 'z': eval_value[2], 'name': key} # 'coordinate_system': 'ITRF2005' is correct or is this 'WGS84' or do we have to update the SIP library to support a newer standard?! station_coordinates[key] = field_coords if not expected_comment_found: raise ValueError('File contents are missing an expected comment, indicating that special cases are no longer present in the coordinates file. Revise the code to reflect that.')