NuRadioReco.utilities.diodeSimulator module

class NuRadioReco.utilities.diodeSimulator.diodeSimulator(output_passband=(None, None))[source]

Bases: object

Calculate a signal as processed by the tunnel diode. The given signal is convolved with the tunnel diodde response as in AraSim.

Parameters:
output_passband: (float, float) tuple

Frequencies for a 6th-order Butterworth filter to be applied after the diode filtering. If a lowpass filter is needed, please pass a (None, float) tuple as parameter.

Methods

calculate_noise_parameters([sampling_rate, ...])

Calculates the mean and the standard deviation for the diode-filtered noise.

tunnel_diode(channel)

Calculate a signal as processed by the tunnel diode.

end

tunnel_diode(channel)[source]

Calculate a signal as processed by the tunnel diode. The given signal is convolved with the tunnel diode response as in AraSim.

The diode model used in this module returns a dimensionless power trace, where the antenna resistance is only a normalisation for the final voltage. That’s why the antenna resistance has been fixed to a value of 8.5 ohms.

Parameters:
channel: Channel

Signal to be processed by the tunnel diode.

Returns:
trace_after_tunnel_diode: array

Signal output of the tunnel diode for the input channel. Careful! This trace is dimensionless and comes from a convolution of the power with the diode response.

calculate_noise_parameters(sampling_rate=1.0, min_freq=0.05, max_freq=1.0, amplitude=9.999999999999999e-06, type='rayleigh', n_tries=10000, n_samples=10000)[source]

Calculates the mean and the standard deviation for the diode-filtered noise.

Parameters:
sampling_rate: float

Sampling rate

min_freq: float

Minimum frequency of the bandwidth

max_freq: float

Maximum frequency of the bandwidth

amplitude: float

Voltage amplitude (RMS) for the noise

type: string

Noise type

n_tries: int

Number of times the calculation is carried out, to get proper averages for the mean and the standard deviation.

n_samples: int

Number of samples for each individual noise trace

Returns:
power_mean: float

Mean of the diode-filtered noise

power_std: float

Standard deviation of the diode-filtered noise

end()[source]