Skip to content

Commit

Permalink
quadratic interpolation of the beam in freq (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholebarry authored Oct 26, 2023
1 parent 51b70cd commit c63b70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instrument_config/mwa_beam_setup_gain.pro
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ CASE beam_model_version OF
Jmat_interp=Ptrarr(n_ant_pol,n_ant_pol,nfreq_bin)
FOR p_i=0,n_ant_pol-1 DO FOR p_j=0,n_ant_pol-1 DO FOR freq_i=0L,nfreq_bin-1 DO Jmat_interp[p_i,p_j,freq_i]=Ptr_new(Dcomplexarr(n_ang))
FOR p_i=0,n_ant_pol-1 DO FOR p_j=0,n_ant_pol-1 DO FOR a_i=0L,n_ang-1 DO BEGIN
Jmat_single_ang=Interpol(Jmat_arr[*,p_i,p_j,a_i],freq_arr_Jmat,freq_center);*norm_factor
Jmat_single_ang=Interpol(Jmat_arr[*,p_i,p_j,a_i],freq_arr_Jmat,freq_center,/quadratic);*norm_factor
FOR freq_i=0L,nfreq_bin-1 DO (*Jmat_interp[p_i,p_j,freq_i])[a_i]=Jmat_single_ang[freq_i]
; (*Jmat_interp[p_i,p_j])[a_i]=Interpol(Jmat_arr[*,p_i,p_j,a_i],freq_arr_Jmat,freq_center)
ENDFOR
Expand Down

0 comments on commit c63b70e

Please sign in to comment.