pulsarbat.freq_shift#

pulsarbat.freq_shift(z, /, shift)[source]#

Shift signal data in frequency by given amount.

A frequency shift is achieved by mixing the signal with a sinusoid. The “out-of-band” portion of the signal is filled with zeros after the frequency shift is applied to prevent erroneous data from appearing in the wrong places due to wrap-around effects.

Shifting by more than a channel bandwidth will not return an error, but a zero signal instead (since all the data shifted out of band).

Parameters:
zBasebandSignal

Input signal.

shiftQuantity

Shift amount in units of frequency. Should be a scalar or have shape that such that axes with length more than 1 match z.sample_shape.

Returns:
BasebandSignal

Frequency-shifted signal.