pafsim.processor.channelizer

Module Contents

class pafsim.processor.channelizer.Channelizer(name: str, **kwargs)

Bases: pafsim.processor._processor.Processor

Inheritance diagram of pafsim.processor.channelizer.Channelizer

The channelizer takes time series (voltages) and channelizes it. The input is a time series of the form APT The output is a channelized time series of the form FAPT

Construct a Generator object

Parameters:

name (str) – The unique name of theGenerator

kwargs:

taps (int): Number of taps used for the filter. Defaults to 2 channels (int): Number of channels to produce. Defaults to 32 window (str): The window function to apply to the filter. The window function must be known

by scipy.windows.get_window(). Defaults to rectangular

pn (int): Numerater, used when oversampling is desired. Defaults to 1 mode (str): pfb -> polyphase filterbank channelizer (default)

fft -> fourier transform channelizer

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 = [['A', 'P', 'T']]
O_FORMAT = ['F', 'A', 'P', 'T']
pfb() numpy.ndarray

Processing function to channelize the data with a Polyphase Filterbank

Returns:

The output array

Return type:

np.ndarray

fft() numpy.ndarray

Processing function to channelize the data with a FFT

Returns:

The output array

Return type:

np.ndarray

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

Plotting function to plot the channeles vs time

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