pycsa.data.results¶
Spectral analysis result dataclass.
Moved from pycsa.core.var. The get_attrs method copies fields
from a Fourier transformer instance + spectrum into the analysis
container; grid_kk_ll is retained as a deprecated helper for legacy
diagnostic scripts.
Classes
|
Container for everything needed to compute idealised pseudo-momentum fluxes from a CSA fit. |
- class pycsa.data.results.analysis(wlat: Any | None = None, wlon: Any | None = None, ampls: ndarray | None = None, kks: ndarray | None = None, lls: ndarray | None = None, recon: ndarray | None = None)¶
Container for everything needed to compute idealised pseudo-momentum fluxes from a CSA fit.
dkanddlare set at runtime byget_attrs()(they’re computed from the wavenumber meshgrids), so they’re not declared as fields.- get_attrs(fobj, freqs) None¶
Copy
wlat/wlonfrom a Fourier transformer and computekks/llsmeshgrids in physical units.Sets
self.dkandself.dlas runtime attributes (mean spacing in each wavenumber direction).
- grid_kk_ll(fobj, dat) ndarray¶
Reshape a flat amplitude vector onto the 2-D wavenumber grid.
Deprecated since version 0.90.0: Retained only for back-compatibility; not used by the production pipeline.
- Parameters:
fobj (
pycsa.core.fourier.f_trans) – Fourier transformer providing the wavenumber index vectorsm_iandm_jalong the two horizontal directions.dat (array-like) – flat vector of spectral amplitudes to scatter onto the grid, ordered to match the iteration over
(m_j, m_i).
- Returns:
2-D amplitude grid of shape
(len(m_i), len(m_j))with thekk == 0andll <= 0entries zeroed out.- Return type: