Disperse¶
- class baseband_tasks.dispersion.Disperse(ih, dm, *, reference_frequency=None, samples_per_frame=None, frequency=None, sideband=None)[source] [edit on github]¶
Bases:
baseband_tasks.base.PaddedTaskBase
Coherently disperse 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 dedisperse correctly, but clearer to use the
Dedisperse
class.- reference_frequency
Quantity
, optional Frequency to which the data should be dispersed. Can be an array. By default, the mean frequency.
- samples_per_frameint, optional
Number of dispersed samples which should be produced in one go. The number of input samples used will be larger to avoid wrapping. If not given, as produced by the minimum power of 2 of input samples that yields at least 75% efficiency.
- frequency
Quantity
, optional Frequencies for each channel in
ih
(channelized frequencies will be calculated). Default: taken fromih
(if available).- sidebandarray, optional
Whether frequencies in
ih
are upper (+1) or lower (-1) sideband. Default: taken fromih
(if available).
- ihtask or
See also
baseband_tasks.fourier.fft_maker
to select the FFT package used.
baseband_tasks.dispersion.Dedisperse
for coherent dedispersion
baseband_tasks.dispersion.DisperseSamples
for incoherent dispersion
Attributes Summary
Phase offsets of the Fourier-transformed frame.
Methods Summary
close
()Close task.
task
(data)Attributes Documentation
- dm¶
- phase_factor¶
Phase offsets of the Fourier-transformed frame.
Methods Documentation
- close()[source] [edit on github]¶
Close task.
Note that this does not explicitly close the underlying source; instead, it just deletes the reference to it.
- task(data)[source] [edit on github]¶