Disperse¶
- class baseband_tasks.dispersion.Disperse(ih, dm, *, reference_frequency=None, samples_per_frame=None, frequency=None, sideband=None)[source] [edit on github]¶
Bases:
PaddedTaskBaseCoherently disperse a time stream.
- Parameters:
- ihtask or
basebandstream reader Input data stream, with time as the first axis.
- dmfloat or
DispersionMeasurequantity Dispersion measure. If negative, will dedisperse correctly, but clearer to use the
Dedisperseclass.- 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, the minimum length that gives at least 75% efficiency and ensures efficient fast fourier transforms.
- frequency
Quantity, optional Frequencies for each channel in
ih(channelized frequencies will be calculated). Default: taken fromih(if available).- sidebandarray, optional
Whether frequencies in
ihare upper (+1) or lower (-1) sideband. Default: taken fromih(if available).
- ihtask or
See also
baseband_tasks.fourier.fft_makerto select the FFT package used.
baseband_tasks.dispersion.Dedispersefor coherent dedispersion
baseband_tasks.dispersion.DisperseSamplesfor 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]¶