DynamicSpectrum¶
- class screens.DynamicSpectrum(dynspec, f, t, noise=None)[source] [edit on github]¶
Bases:
objectDynamic spectrum and its axes.
While code is meant to be agnostic to which axes are which, some may assume a shape of
(..., time_axis, frequency_axis).- Parameters:
- dynspec
ndarray Intensities as a function of time and frequency.
- t
Quantity Times of the dynamic spectrum. Should have the proper shape to broadcast with
dynspec.- f
Quantity Frequencies of the dynamic spectrum. Should have the proper shape to broadcast with
dynspec.- noisefloat
The uncertainty in the intensities in the dynamic spectrum.
- dynspec
Methods Summary
fromfile(filename[, noise])Read a dynamic spectrum from an HDF5 file.
Methods Documentation
- classmethod fromfile(filename, noise=None)[source] [edit on github]¶
Read a dynamic spectrum from an HDF5 file.
This includes its time and frequency axes.
Note: this needs the baseband-tasks package for HDF5 file access.