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

Make receptor angle adjustments to PA consistent with CASA and AIPS #477

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bennahugo
Copy link
Collaborator

This fixes the ambigous definition of RECEPTOR_ANGLE inside ::FEED to be treated consistently with CASA and AIPS.

This fixes the ambigous definition of RECEPTOR_ANGLE inside ::FEED to be treated consistently with CASA and AIPS.
@bennahugo
Copy link
Collaborator Author

Let's just at least make this mess self consistent. This is why it is vital to have properly spec'd data structures.

@bennahugo
Copy link
Collaborator Author

@bmerry as discussed a fix to make this self consistent with the other end-user software

#dipole phasing calibration ***MUST*** be calibrated prior to applying corrective parallactic angle matrices
#because the phasing affects the rotation handedness (ie. incorrect phasing results in a sign flip not only
#on V, but also on U).
c2, s2 = np.cos(pa[:, aindex, 0]).repeat(nchan), np.sin(pa[:, aindex, 0]).repeat(nchan)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it more direct then just to say

Suggested change
c2, s2 = np.cos(pa[:, aindex, 0]).repeat(nchan), np.sin(pa[:, aindex, 0]).repeat(nchan)
c2, s2 = c1, s1

unless I've missed something?

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

Successfully merging this pull request may close these issues.

3 participants