pafsim.processor.calibrator

Module Contents

class pafsim.processor.calibrator.WeightGenerator(name: str, **kwargs)

Bases: pafsim.processor._processor.Processor

Inheritance diagram of pafsim.processor.calibrator.WeightGenerator

The WeightGenerator creates beam weights under the use of ACMs. It uses the Correlator as input, the format is FPAA. The output array are the frequency dependend weights of the form BFPA.

Construct a WeightGenerator object

Parameters:

name (str) – The unique name of theWeightGenerator

kwargs:
beams (int): The number of beams to produce. This parameter is implicitly determined

when using the maxsnr processing

mode (str): maxsnr -> maximum signal-to-noise algorithm (default)

property default: str

Default process function

property shape: tuple

The shape of the output array

Returns:

The shape

Return type:

tuple

N_INPUT = 1
I_FORMAT = [['N', 'F', 'P', 'A', 'A']]
O_FORMAT = ['B', 'F', 'P', 'A']
maxsnr() numpy.ndarray

Processing function to compute beam weight under the use of th maximum signal-to-noise algorithms

Returns:

_description_

Return type:

np.ndarray

random() numpy.ndarray

Processing function creating random weights

Returns:

The output array

Return type:

np.ndarray

zero() numpy.ndarray

Processing function creating zero weights

Returns:

The output array

Return type:

np.ndarray

bypass() numpy.ndarray

Processing function to bypass using a diagonal matrix with ones and zeros

Returns:

The output array

Return type:

np.ndarray

plot(path='', figsize=(8, 4))

Plotting function to plot the amplitude of the beamweight

Parameters:
  • path (str, optional) – If not set to “” it stores the plot in the given directory. Defaults to “”.

  • figsize (tuple, optional) – Size of the plotted figure. Defaults to (8,4).