Skip to content

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

@martamonelli

Description

@martamonelli

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions