Commit 9e24b6ca authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

Confused lat and lon.

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