Commit 8a53fee7 authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

lat to [-180, 180]

parent d602ded7
......@@ -178,6 +178,7 @@ def location(posterior, mu_dips, cov_dips, n_points=10000,
/ np.sqrt((2*np.pi)**3 * np.linalg.det(cov_dips[it])) \
* np.cos(theta) * zk / np.sqrt(zalpha**3) * dummy
lat = np.rad2deg(theta)
lat[np.where(180 < lat)] -= 360
lon = np.rad2deg(phi)
return lat, lon, dens
......
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