NuRadioReco.modules.LOFAR.stationGalacticCalibrator module

NuRadioReco.modules.LOFAR.stationGalacticCalibrator.fourier_series(x, p)[source]

Evaluates the partial Fourier series:

\[F(x) \approx \frac{a_{0}}{2} + \sum_{n=1}^{\mathrm{order}} a_{n} \sin(nx) + b_{n} \cos(nx)\]

Here the coefficients \(a_{n}\) are assumed to be the even elements of p and the \(b_{n}\) coefficients the odd elements.

class NuRadioReco.modules.LOFAR.stationGalacticCalibrator.stationGalacticCalibrator(experiment='LOFAR_LBA')[source]

Bases: object

Apply the galactic calibration to all the channels, to each dipole polarization separately. This function assumes the traces have already been cleaned from any RFI. Both the absolute calibration using Galactic noise and the relative calibration between antenna’s is applied.

Parameters:
experiment: str

Reference to the antenna set parameters to use.

Notes

The absolute calibration makes use of a measured calibration curve, which encodes

  1. The conversion from ADC to Volts,

  2. As well as the gains and losses in the amplifiers and coax cables.

The relative calibration makes sure all the antennas are calibrated to the same reference value. On the other hand, the calibration correlates this reference value to the Galactic noise in order to make the units physically meaningful.

Further details are described in this overview, and also this paper .

Methods

begin([logger_level])

Loads the experimental parameters (such as longitude and latitude) as well as the Galactic calibration curves and Fourier coefficients from the directory NuRadioReco/utilities/data/.

run(event)

Run the calibration on all stations in event.

end

begin(logger_level=30)[source]

Loads the experimental parameters (such as longitude and latitude) as well as the Galactic calibration curves and Fourier coefficients from the directory NuRadioReco/utilities/data/.

Parameters:
logger_levelint, default=logging.WARNING

The logging level to use for the module.

run(event)[source]

Run the calibration on all stations in event.

Parameters:
eventEvent object

The event on which to apply the Galactic calibration.

end()[source]