Skip to content
Snippets Groups Projects
Commit 6e968628 authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

TMSS-1777: bugfix

parent af3142b3
Branches TMSS-1777
No related tags found
1 merge request!4TMSS-1777: update station coordinates in SIP library
Pipeline #51128 passed
...@@ -22,8 +22,8 @@ def parse_station_coordinates() -> dict: ...@@ -22,8 +22,8 @@ def parse_station_coordinates() -> dict:
if line and line.startswith('PIC.Core.'): if line and line.startswith('PIC.Core.'):
key, value = line.split('=') key, value = line.split('=')
key = key.replace('PIC.Core.', '').replace('.phaseCenter', '').strip() key = key.replace('PIC.Core.', '').replace('.phaseCenter', '').strip()
eval_value = literal_eval(value) 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]} # 'coordinate_system': 'ITRF2005' is correct or is this 'WGS84'?! 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 station_coordinates[key] = field_coords
if not expected_comment_found: 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.') 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.')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment