Skip to content

Commit

Permalink
fix solint snr
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtobin committed Feb 25, 2022
1 parent d0f2fb8 commit 1de3b86
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selfcal_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,9 @@ def get_SNR_self(all_targets,bands,vislist,selfcal_library,n_ant,solints,integra
if solint == 'inf_EB':
SNR_self_EB=np.zeros(len(vislist))
for i in range(len(vislist)):
SNR_self_EB[i]=selfcal_library[target][band]['SNR_orig']/((n_ant)**0.5*(selfcal_library[target][band]['Total_TOS']/selfcal_library[target][band][vislist[i]]['TOS'])**0.5)
selfcal_library[target][band]['per_EB_SNR']=np.mean(SNR_self_EB)
solint_snr[target][band][solint]=np.mean(SNR_self_EB)
SNR_self_EB[i]=selfcal_library[target][band]['SNR_orig']/((n_ant-3)**0.5*(selfcal_library[target][band]['Total_TOS']/selfcal_library[target][band][vislist[i]]['TOS'])**0.5)
selfcal_library[target][band]['per_EB_SNR']=np.mean(SNR_self_EB)
solint_snr[target][band][solint]=np.mean(SNR_self_EB)
elif solint =='inf':
selfcal_library[target][band]['per_scan_SNR']=selfcal_library[target][band]['SNR_orig']/((n_ant-3)**0.5*(selfcal_library[target][band]['Total_TOS']/selfcal_library[target][band]['Median_scan_time'])**0.5)
solint_snr[target][band][solint]=selfcal_library[target][band]['per_scan_SNR']
Expand Down

0 comments on commit 1de3b86

Please sign in to comment.