Skip to content

Commit

Permalink
turn on all ants. Restore LWA-041 AT2.
Browse files Browse the repository at this point in the history
  • Loading branch information
yupinghuang committed Sep 5, 2024
1 parent 9a73c60 commit a580934
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mnc/sigtab.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# 20240228 Use opsdatapath.py to find sigtab.mat

import scipy.io as mat
import opsdatapath as dp
# import opsdatapath as dp

d = mat.loadmat(dp.OPSDATAPATH+'sigtab.mat')
d = mat.loadmat('/home/pipeline/opsdata/' +'sigtab.mat')
sigtab = d['sigtab']
antNames = d['antNames']

Expand Down
14 changes: 11 additions & 3 deletions scripts/edit_settings_mat.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,32 @@
from os import path

if __name__ == '__main__':
INPUT_MAT = '/home/pipeline/opsdata/20240315-settingsAll-day.mat'
INPUT_MAT = '/home/pipeline/opsdata/20240315-settingsAll-night.mat'
OUTPUT_MAT = path.basename(INPUT_MAT)

config = sio.loadmat(INPUT_MAT, squeeze_me=True)

#### Edit settings here ####
config['comment'] = 'This file turns off FEE power to both chan of LWA-041,044,235,280'
# config['comment'] = 'This file turns off FEE power to both chan of LWA-041,044,235,280'
config['comment'] = 'This file turns off FEE power to no antennas.'
new_off = np.array(
sorted([158, 159, 160, 161, 618, 619, 82, 83]),
sorted([]),
dtype=config['off'].dtype)
config['off'] = new_off

"""
# set AT2=31.5 for arx 16 chan 15 (aka LWA-041A)
target_arx_chans = [(16, 15)]
adrs = config['adrs']
for target_arx, target_chan in target_arx_chans:
i_arx = np.where(adrs == target_arx)[0]
config['settings'][i_arx, target_chan-1, 1] = 31.5
"""
target_arx_chans = [(16, 15)]
adrs = config['adrs']
for target_arx, target_chan in target_arx_chans:
i_arx = np.where(adrs == target_arx)[0]
config['settings'][i_arx, target_chan-1, 1] = 8.02284177
#### End of edit ####

sio.savemat(OUTPUT_MAT, config)

0 comments on commit a580934

Please sign in to comment.