Skip to content
Snippets Groups Projects
Commit 1c193091 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Use cbBf.update_other_weights_formats() to speed up script.

parent 0bc2cca5
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
Usage: Usage:
Run on lcu-rt# Run on lcu-rt#
> ssh lcu-rtc -X "python $RADIOHDL/applications/apertif/commissioning/setup_arts.py --scheme arts_sc1 --unb 0:7 --bn 0:3 --fn 0:3 -v 3 --pol 0,1 --cbeams 0 --globalsp 60" > ssh lcu-rtc -X "python $RADIOHDL/applications/apertif/commissioning/setup_arts.py --scheme arts_sc1 --unb 0:7 --bn 0:3 --fn 0:3 -v 3 --pol 0,1 --cbeams 0 --globalsp 60"
> ssh lcu-rtc -X "python $RADIOHDL/applications/apertif/commissioning/setup_arts.py --scheme arts_sc4 --unb 0:7 --bn 0:3 --fn 0:3 -v 3 --pol 0,1 --cbeams 0:39 --globalsp 60,0:38" > ssh lcu-rtc -X "python $RADIOHDL/applications/apertif/commissioning/setup_arts.py --scheme arts_sc4 --unb 0:7 --bn 0:3 --fn 0:3 -v 3 --pol 0,1 --cbeams <#,> --globalsp <#,>"
""" """
############################################################################### ###############################################################################
...@@ -65,13 +65,14 @@ if not tc.read: ...@@ -65,13 +65,14 @@ if not tc.read:
rbeam.read_and_verify_reorder_beamlets() rbeam.read_and_verify_reorder_beamlets()
############################################################################### ###############################################################################
# Compound BF : Write compound beamformer weights # Compound BF : Write compound beamformer weights for single element compound beams
# . for Arts SC1 use: --cbeams 0 --globalsp 56 # central SP pixel in PAF for CB 0 # . for Arts SC1 use: --cbeams 0 --globalsp 56 # central single SP in PAF for CB 0
# . for Arts SC1 use: --cbeams 0,1 --globalsp 56,56 # central SP pixel in PAF for CB 0,1 similar as in test_arts_0.py # . for Arts SC1 use: --cbeams 0,1 --globalsp 56,56 # central single SP in PAF for CB 0,1 similar as in now obsolete test_arts_0.py
# . for Arts SC4 use: --cbeams 0:39 --globalsp 56,1,2...,39 # ordered list of SP pixel numbers in PAF, one pixel per CB # . for Arts SC4 use: --cbeams ... --globalsp ... # list of single SP in PAF, and corresponding list of CB
cbBf = dish.CompoundBeamformer(tc, io, rsub, rbeam) cbBf = dish.CompoundBeamformer(tc, io, rsub, rbeam)
for ci, cb in enumerate(tc.cbeams): # single pixel SP per CB for ci, cb in enumerate(tc.cbeams): # single element SP per CB
cbBf.set_same_weigth_to_subset_of_weights(cb=cb, pol=tc.polNrs, subband=range(dish.N_sub), sp=tc.globalsp[ci], weight=complex(32767, 0)) cbBf.set_same_weigth_to_subset_of_weights(cb=cb, pol=tc.polNrs, subband=range(dish.N_sub), sp=tc.globalsp[ci], weight=complex(32767, 0), updateFormats=False)
cbBf.update_other_weights_formats()
#cbBf.log_cb_subband_weights() #cbBf.log_cb_subband_weights()
#cbBf.log_cb_iblet_weights() #cbBf.log_cb_iblet_weights()
#cbBf.log_beamlet_weights() #cbBf.log_beamlet_weights()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment