From ced9ee456c0f31eaeaf4bcaa304548654a91e1a9 Mon Sep 17 00:00:00 2001
From: Erik Kooistra <kooistra@astron.nl>
Date: Mon, 18 Jun 2018 11:22:09 +0000
Subject: [PATCH] Support --rerun via  for SC4 as well.

---
 applications/apertif/commissioning/dish_commands.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/applications/apertif/commissioning/dish_commands.sh b/applications/apertif/commissioning/dish_commands.sh
index 00098b2d43..91836e0a03 100755
--- a/applications/apertif/commissioning/dish_commands.sh
+++ b/applications/apertif/commissioning/dish_commands.sh
@@ -352,11 +352,11 @@ fi
 if [ "$APP" == "arts_sc4" ]; then
     # Run python $UPE/base/unb_apertif.py to view how the generic PAF element numbers relate to the --pol, --globalsp and to get the list of single element beams per polarization
     if [ "$OPTIONS" == "centraldipole" ]; then
-        python $RADIOHDL/applications/apertif/commissioning/dish_setup_arts.py --scheme $APP --unb 0:3 --bn 0:3 --fn 0:3 -v 3 --pol 0 --cbeams 0,1,2,3,5,6,7,8,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,35,36,37,38 --globalsp 56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56 
-        python $RADIOHDL/applications/apertif/commissioning/dish_setup_arts.py --scheme $APP --unb 4:7 --bn 0:3 --fn 0:3 -v 3 --pol 1 --cbeams 0,1,2,3,5,6,7,8,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,35,36,37,38 --globalsp 56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56
+        python $RADIOHDL/applications/apertif/commissioning/dish_setup_arts.py $OPT_RERUN --scheme $APP --unb 0:3 --bn 0:3 --fn 0:3 -v 3 --pol 0 --cbeams 0,1,2,3,5,6,7,8,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,35,36,37,38 --globalsp 56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56 
+        python $RADIOHDL/applications/apertif/commissioning/dish_setup_arts.py $OPT_RERUN --scheme $APP --unb 4:7 --bn 0:3 --fn 0:3 -v 3 --pol 1 --cbeams 0,1,2,3,5,6,7,8,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,35,36,37,38 --globalsp 56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56
     else
-        python $RADIOHDL/applications/apertif/commissioning/dish_setup_arts.py --scheme $APP --unb 0:3 --bn 0:3 --fn 0:3 -v 3 --pol 0 --cbeams 0,1,2,3,5,6,7,8,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,35,36,37,38 --globalsp 30,61,6,31,37,27,60,42,3,36,26,7,57,2,33,18,45,56,21,40,32,44,63,5,20,39,41,16,62,17,38,35
-        python $RADIOHDL/applications/apertif/commissioning/dish_setup_arts.py --scheme $APP --unb 4:7 --bn 0:3 --fn 0:3 -v 3 --pol 1 --cbeams 0,1,2,3,5,6,7,8,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,35,36,37,38 --globalsp 9,30,61,31,6,27,60,42,3,36,15,7,26,57,2,18,45,56,21,29,32,11,44,40,63,20,41,5,62,17,38,16
+        python $RADIOHDL/applications/apertif/commissioning/dish_setup_arts.py $OPT_RERUN --scheme $APP --unb 0:3 --bn 0:3 --fn 0:3 -v 3 --pol 0 --cbeams 0,1,2,3,5,6,7,8,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,35,36,37,38 --globalsp 30,61,6,31,37,27,60,42,3,36,26,7,57,2,33,18,45,56,21,40,32,44,63,5,20,39,41,16,62,17,38,35
+        python $RADIOHDL/applications/apertif/commissioning/dish_setup_arts.py $OPT_RERUN --scheme $APP --unb 4:7 --bn 0:3 --fn 0:3 -v 3 --pol 1 --cbeams 0,1,2,3,5,6,7,8,10,11,12,13,15,16,17,18,20,21,22,23,25,26,27,28,30,31,32,33,35,36,37,38 --globalsp 9,30,61,31,6,27,60,42,3,36,15,7,26,57,2,18,45,56,21,29,32,11,44,40,63,20,41,5,62,17,38,16
     fi
 fi
 
-- 
GitLab