pafsim.processor.beamformer

Module Contents

class pafsim.processor.beamformer.Beamformer(name: str, **kwargs)

Bases: pafsim.processor._processor.Processor

Inheritance diagram of pafsim.processor.beamformer.Beamformer

The Beamformer class forms beams out of voltage data and beam weights The Beamformer expects two inputs, the voltage data of the form of FPAT and the beam weights of the BFPA. The output is shape is FPAT The Beamformer inherits from the Processor class.

Construct a Beamformer object

Parameters:

name (str) – The unique name of the Beamformer

property default: str

Default process function

property shape: tuple

The shape of the output array

Returns:

The shape

Return type:

tuple

N_INPUT = 2
I_FORMAT = [['F', 'P', 'A', 'T'], ['B', 'F', 'P', 'A']]
O_FORMAT = ['F', 'B', 'P', 'T']
setPreProcessor(processor: pafsim.processor._processor.Processor)

Connects the processor with a pre-processor

Parameters:

processor (Processor) – Concret object of the pre-processor

Raises:

TypeError – When the pre-processor is not of type WeightGenerator or Channelizer

ToDo: The beamformer should allow any pre-processor with the matching dimensions.

voltage() numpy.ndarray

Applys the beam weights to the voltage data and forms beams using a general matrix multiplication

Returns:

The output array

Return type:

np.ndarray

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

Plotting function to plot the beamformed time series

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).