This module contains:
Bases: epygram.util.RecursiveObject
A spectrum can be seen as a quantification of a signal’s variance with regards to scale. If the signal is defined in physical space on N points, its spectral representation will be a squared mean value (wavenumber 0) and variances for N-1 wavenumbers. For details and documentation, see
Denis et al. (2002) : ‘Spectral Decomposition of Two-Dimensional Atmospheric Fields on Limited-Area Domains Using the Discrete Cosine Transform (DCT)’
Writes the spectrum with formatted output in filename.
Function dctspectrum takes a 2D-array as argument and returns its 1D DCT ellipse spectrum.
log is an optional logging.Logger instance to which print info in verbose case.
To plot a series of spectra.
Args:
spectra = a Spectrum instance or a list of.
unit: string accepting LaTeX-mathematical syntaxes
slopes = list of dict( - exp=x where x is exposant of a A*k**-x slope - offset=A where A is logscale offset in a A*k**-x slope;
a offset=1 is fitted to intercept the first spectra at wavenumber = 2
zoom = dict(xmin=,xmax=,ymin=,ymax=)
title = string for title