From 80429edca7f439d20905939af2cb862146572c2d Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Wed, 13 Jun 2018 09:56:22 +0000
Subject: [PATCH] Use Rbeamout for Arts SC4 to support using MAC with ARts SC4.

---
 applications/apertif/commissioning/dish_setup_arts.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/applications/apertif/commissioning/dish_setup_arts.py b/applications/apertif/commissioning/dish_setup_arts.py
index 55298cf17a..421607d3db 100644
--- a/applications/apertif/commissioning/dish_setup_arts.py
+++ b/applications/apertif/commissioning/dish_setup_arts.py
@@ -67,7 +67,8 @@ if tc.scheme=='arts_sc1':
     macScheme = '300MHz_37CB'    # Use R_beam as used by Apertif MAC, remap beamlet output for Arts SC1 with R_beamout
 
 if tc.scheme=='arts_sc4':
-    macScheme = 'arts_sc4'       # Use R_beam for Arts SC4 will result in transparent R_beamout
+    macScheme = '300MHz_37CB'    # Use R_beam as used by Apertif MAC, remap beamlet output for Arts SC4 with R_beamout
+    #macScheme = 'arts_sc4'       # Use R_beam for Arts SC4 will result in transparent R_beamout
 
 if tc.run:        
     ###############################################################################
@@ -92,7 +93,8 @@ if tc.run:
 # R_beamout : Write beamlet output selection for Arts
 # . remap macScheme --> tc.scheme
 # .     300MHz_37CB --> arts_sc1, so R_beamout remaps the beamlet output
-# .     arts_sc4    --> arts_sc4, so R_beamout is transparent 
+# .     300MHz_37CB --> arts_sc4, so R_beamout remaps the beamlet output, suitable for use with or without MAC
+# .     arts_sc4    --> arts_sc4, so R_beamout is transparent, suitable only for use without MAC
 rbeamout = dish.declare_reorder_beamout(tc, io, sel_beamlets_scheme_in=macScheme, sel_beamlets_scheme_out=tc.scheme)
 rbeamout.write_reorder_beamout()
 rbeamout.read_and_verify_reorder_beamout()
-- 
GitLab