Table Of Contents

Previous topic

pycrtools.tasks

Next topic

pycrtools.tasks.averagespectrum

This Page

pycrtools.tasks.antennaresponse

AntennaResponse([ws, parfile]) Calculates and unfolds the LOFAR (LBA or HBA) antenna response.
Task([ws, parfile]) Base class from which all tasks should be derived.

AntennaResponse

Module author: Pim Schellart <p.schellart@astro.ru.nl>

class pycrtools.tasks.antennaresponse.AntennaResponse(ws=None, parfile=None, **kwargs)

Calculates and unfolds the LOFAR (LBA or HBA) antenna response.

Given an array with instrumental_polarization and a direction as (Azimuth, Elevation) the Jones matrix containing the LOFAR (LBA or HBA) antenna response is calculated.

Mixing the two instrumental polarizations by multiplying with the inverse Jones matrix gives the resulting on-sky polarizations (e.g. perpendicular to the direction and parallel to and perpendicular to the horizon).

Note that, due to the intrinsic symmetry of the antenna configuration, the direction of Azimuth (CW or CCW) is not relevant.

Input parameters

antennaset [default value: “LBA_OUTER” ]
Antennaset.
apply_to_data [default value: True ]
Apply to data, set to False if you only need the (inverse) Jones matrix.
backwards [default value: False ]
Apply antenna response backwards (e.g. without inverting the Jones matrix).
direction [default value: (0, 0) ]
Direction in degrees as a (Azimuth, Elevation) tuple LOFAR convention for azimuth (northwards positive from east).
frequencies [default value: None ]
Frequencies in Hz.
instrumental_polarization [default value: None ]
FFT data.
inverse_jones_matrix
Inverse Jones matrix for each frequency.
jones_matrix
Jones matrix for each frequency.
nantennas
Number of antennas.
swap_dipoles [default value: False ]
Swap dipoles before mixing.
test_with_identity_matrix [default value: False ]
Don’t apply the model, use identity matrix for mixing. For testing purposes only.
vp [default value: None ]
Table with complex antenna response for X dipole to wave purely polarized in phi direction.
vt [default value: None ]
Table with complex antenna response for X dipole to wave purely polarized in theta direction.

Output parameters

on_sky_polarization
FFT data corrected for element response (contains on sky polarizations).
run()

Run.