ConjugateSpectrum¶
- class screens.ConjugateSpectrum(conjspec, tau, fd, noise=None)[source] [edit on github]¶
Bases:
objectConjugate spectrum and methods to fit it.
The code is meant to be agnostic to which axes are which, but some may assume a shape of
(..., doppler_axis, delay_axis).- Parameters:
- conjspec
ndarray Fourier transform of a dynamic spectrum.
- fd
Quantity Doppler factors of the conjugate spectrum. Normally time conjugate but can be arbitrary (e.g., conjugate of
f*t). Should have the the proper shape to broadcast withconjspec.- tau
Quantity Delays of the conjugate spectrum. Should have the proper shape to broadcast with
dynspec.- noisefloat
The uncertainty in the real and imaginary components of the conjugate spectrum.
- conjspec
Attributes Summary
Secondary spectrum, i.e., the power of the conjugate spectrum.
Methods Summary
from_dynamic_spectrum(dynspec[, normalization])Create a conjugate spectrum from a dynamic one.
Attributes Documentation
- secspec¶
Secondary spectrum, i.e., the power of the conjugate spectrum.
Methods Documentation
- classmethod from_dynamic_spectrum(dynspec, normalization='mean', **kwargs)[source] [edit on github]¶
Create a conjugate spectrum from a dynamic one.
Easiest if the input is a
DynamicSpectruminstance.By passing in an explicit time axis using
t, one can get a different delay factor conjugate. Particularly useful witht=f*t, which takes into account the frequency dependence of the time variation of scintles.Note that the dynamic spectrum is assumed to have shape
(..., time_axis, frequency_axis).- Parameters:
- dynspecarray_like or
DynamicSpectrum Input dynamic spectrum for which the fourier transform will be calculated. If it has attributes
f,t,d_eff,theta,magnification, andnoise, those will be used as default inputs. TODO:noiseis likely wrong!- normalization‘mean’ or None
Normalize dynamic spectrum by its mean and subtract 1 before transforming and ensure the resulting conjugate spectrum is normalized as well, with the 0, 0 element equal unity.
- **kwargs
Other arguments to initialize the conjugate spectrum.
- dynspecarray_like or