Dechannelize¶
- class baseband_tasks.channelize.Dechannelize(ih, n=None, samples_per_frame=None, *, dtype=None, frequency=None, sideband=None)[source] [edit on github]¶
Bases:
baseband_tasks.base.TaskBase
Basic dechannelizer.
Inverse Fourier transform on first sample axis (which gets removed).
- Parameters
- ihtask or
baseband
stream reader Input data stream, with time as the first axis, and Fourier channel as the second.
- nint, optional
Number of output samples to create for each spectrum. By default, for complex output data, the same as the number of channels. For real output data, the number has to be passed in.
- samples_per_frameint, optional
Number of output samples to produce in one go. Rounded to the nearest multiple of
n
. Default: inferred from underlying stream, i.e.,ih.samples_per_frame * n
.- dtype
dtype
, optional Dtype of the output samples. Default: complex (like
ih
).- frequency
Quantity
, optional Frequencies for each output channel. Default: inferred from
ih
(if available).- sidebandarray, optional
Whether frequencies are upper (+1) or lower (-1) sideband. Default: taken from
ih
(if available).
- ihtask or
See also
baseband_tasks.fourier.fft_maker
to select the FFT package used.
Notes
To construct a Dechannelizer for a given Channelizer instance, use the
from_channelizer
classmethod.Methods Summary
inverse
(ih)Create a Channelize instance that undoes this Dechannelization.
task
(data)Methods Documentation
- inverse(ih)[source] [edit on github]¶
Create a Channelize instance that undoes this Dechannelization.
- Parameters
- ihtask or
baseband
stream reader Input data stream to be channelized.
- ihtask or
- task(data)[source] [edit on github]¶