Skip to content

Commit

Permalink
Use pol_axis directly
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed Oct 9, 2023
1 parent 5d2c17c commit 71f84e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fixms/fix_ms_corrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def get_pol_axis(ms: Path, feed_idx: Optional[int] = None) -> u.Quantity:
"""
with table((ms / "FEED").as_posix(), readonly=True, ack=False) as tf:
ms_feed = tf.getcol("RECEPTOR_ANGLE") * u.rad
# PAF is at 45deg to feeds
# 45 - feed_angle = pol_angle
pol_axes = -(ms_feed - 45.0 * u.deg)

if feed_idx is None:
Expand Down Expand Up @@ -167,7 +169,7 @@ def convert_correlations(correlations: np.ndarray, pol_axis: u.Quantity) -> np.n
"""
theta = (pol_axis + 45.0 * u.deg).to(u.rad).value
theta = pol_axis.to(u.rad).value
correction_matrix = np.matrix(
[
[
Expand Down

0 comments on commit 71f84e8

Please sign in to comment.