Skip to content

Commit

Permalink
take the sqrt of the abs columns in CST files for efield beams
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton committed Aug 14, 2023
1 parent 4ff6808 commit c67d02b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyuvdata/uvbeam/cst_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ def read_cst_beam(
)
phi_phase = phi_phase.reshape((theta_axis.size, phi_axis.size), order="F")

theta_beam = theta_mag * np.exp(1j * theta_phase)
phi_beam = phi_mag * np.exp(1j * phi_phase)
theta_beam = np.sqrt(theta_mag) * np.exp(1j * theta_phase)
phi_beam = np.sqrt(phi_mag) * np.exp(1j * phi_phase)

self.data_array[0, 0, 0, 0, :, :] = phi_beam
self.data_array[1, 0, 0, 0, :, :] = theta_beam
Expand Down

0 comments on commit c67d02b

Please sign in to comment.