# Dedisperse¶

class baseband_tasks.dispersion.Dedisperse(ih, dm, reference_frequency=None, samples_per_frame=None, frequency=None, sideband=None)[source] [edit on github]

Coherently dedisperse a time stream.

Parameters
ihtask or baseband stream reader

Input data stream, with time as the first axis.

dmfloat or DispersionMeasure quantity

Dispersion measure. If negative, will disperse correctly, but clearer to use the Disperse class.

reference_frequencyQuantity

Frequency to which the data should be dedispersed. Can be an array. By default, the mean frequency. If one doesn’t want to change the start time, choose the maximum frequency.

samples_per_frameint, optional

Number of samples which should be dedispersed in one go. The number of output dedispersed samples per frame will be smaller to avoid wrapping. If not given, the minimum power of 2 needed to get at least 75% efficiency.

frequencyQuantity, optional

Frequencies for each channel in ih (channelized frequencies will be calculated). Default: taken from ih (if available).

sidebandarray, optional

Whether frequencies in ih are upper (+1) or lower (-1) sideband. Default: taken from ih (if available).

baseband_tasks.fourier.fft_maker