Skip to content
Snippets Groups Projects
Commit 385fc3fb authored by Sylvia Biscoveanu's avatar Sylvia Biscoveanu
Browse files

Fix latitutde and longitude calculation

parent cc9a73fd
No related branches found
No related tags found
No related merge requests found
Pipeline #330037 failed
......@@ -317,8 +317,8 @@ class TriangularInterferometer(InterferometerList):
xarm_azimuth += 240
yarm_azimuth += 240
latitude += np.arctan(length * np.sin(xarm_azimuth * np.pi / 180) * 1e3 / utils.radius_of_earth)
longitude += np.arctan(length * np.cos(xarm_azimuth * np.pi / 180) * 1e3 / utils.radius_of_earth)
latitude += np.arctan(length * np.sin(xarm_azimuth * np.pi / 180) * 1e3 / utils.radius_of_earth) * 180 / np.pi
longitude += np.arctan(length * np.cos(xarm_azimuth * np.pi / 180) * 1e3 / utils.radius_of_earth) * 180 / np.pi
def get_empty_interferometer(name):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment