Skip to content

Commit 78cd3ad

Browse files
authored
Update uvbeam_tutorial.rst
adding a feko beam tutorial
1 parent 43eb975 commit 78cd3ad

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docs/uvbeam_tutorial.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,28 @@ b) Reading a CST E-field beam file
150150
>>> beam == beam3
151151
True
152152
153+
c) Reading a FEKO beam file (Power & E-field)
154+
**********************************
155+
.. code-block:: python
156+
>>> import os
157+
>>> from pyuvdata import UVBeam
158+
>>> from pyuvdata.data import DATA_PATH
159+
>>> import numpy as np
160+
161+
>>> filename_x = "OVRO_LWA_x.ffe"
162+
>>> filename_y = "OVRO_LWA_y.ffe"
163+
>>> feko_folder = "OVRO_LWA_FEKOBeams"
164+
>>> feko_filename_x = os.path.join(DATA_PATH, feko_folder, filename_x)
165+
>>> feko_filename_y = os.path.join(DATA_PATH, feko_folder, filename_y)
166+
167+
>>> pbeam_feko = UVBeam.from_file(
168+
feko_filename_x, beam_type='power', frequency=None,
169+
feed_pol='x', telescope_name='LWA',
170+
feed_name='LWA', feed_version='1',
171+
model_name='FEKO_MROsoil_test', model_version='1.0',
172+
)
173+
>>> print(np.shape(pbeam_feko.data_array))
174+
(1, 1, 91, 181, 361)
153175
c) Reading in the MWA full embedded element beam
154176
************************************************
155177
.. code-block:: python

0 commit comments

Comments
 (0)