From 6ae110c7b33bba98415308e37473dee3f84b9817 Mon Sep 17 00:00:00 2001 From: "Thomson, Alec (CASS, Kensington)" Date: Wed, 1 May 2024 12:47:35 +1000 Subject: [PATCH] Add alpha rotation --- arrakis/linmos.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/arrakis/linmos.py b/arrakis/linmos.py index a45e63c7..a8a75f6c 100644 --- a/arrakis/linmos.py +++ b/arrakis/linmos.py @@ -169,9 +169,12 @@ def genparset( pol_angles_list.append(_pol_angle) pol_angles: u.Quantity = pol_angles_list * u.deg - alpha: u.Quantity = pol_angles[0] + pol_0: u.Quantity = pol_angles[0] - assert np.allclose(pol_angles, alpha), "Polarisation angles are not the same!" + assert np.allclose(pol_angles, pol_0), "Polarisation angles are not the same!" + + logger.warning("Assuming holography was done at -45 degrees") + alpha = pol_0 - -45 * u.deg image_string = f"[{','.join([im.resolve().with_suffix('').as_posix() for im in image_paths.images])}]" weight_string = f"[{','.join([im.resolve().with_suffix('').as_posix() for im in image_paths.weights])}]"