DynamicSpectrum

class screens.dynspec.DynamicSpectrum(dynspec, f, t, noise=None)[source] [edit on github]

Bases: object

Dynamic 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:
dynspecndarray

Intensities as a function of time and frequency.

tQuantity

Times of the dynamic spectrum. Should have the proper shape to broadcast with dynspec.

fQuantity

Frequencies of the dynamic spectrum. Should have the proper shape to broadcast with dynspec.

noisefloat

The uncertainty in the intensities in the dynamic spectrum.

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.