Skip to content

Commit

Permalink
Fix bug in computing theta in _components.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MetinSa committed Aug 23, 2021
1 parent f76fafa commit deb3e3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion zodipy/_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ def get_coordinates(

x_earth_prime = x_earth - self.x_0
y_earth_prime = y_earth - self.y_0
θ_prime = np.arctan2(y_prime - y_earth_prime , x_prime - x_earth_prime)

θ_prime = (
np.arctan2(y_prime , x_prime)
- np.arctan2(y_earth_prime , x_earth_prime)
)

return (R_prime, Z_prime, θ_prime), R_helio

Expand Down

0 comments on commit deb3e3c

Please sign in to comment.