Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unsure about the theta, phi -> ra, dec conversion #18

Open
martamonelli opened this issue Mar 31, 2023 · 0 comments
Open

unsure about the theta, phi -> ra, dec conversion #18

martamonelli opened this issue Mar 31, 2023 · 0 comments

Comments

@martamonelli
Copy link
Contributor

I'm a bit confused by lines 380-387 in scanning.py:

# From (theta,phi) to (ra,dec) convention
# Also, all angles are converted in degrees
ra = np.degrees(phi_out) - 180.
dec = np.degrees(theta_out) - 90.
psi = np.degrees(psi_out)
# Calculate the quaternion
q_bore = Q.radecpa2quat(ra, dec, psi)

Shouldn't the theta, phi -> ra, dec conversion be

ra = np.degrees(phi)
dec = 90. - np.degrees(theta)

Maybe there was a reason why we wrote the conversion this way, but I cannot remember. I'm writing here just in case someone does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant