Phase Statistics¶
Overview¶
The phaseStats module provides functions for computing atmospheric phase statistics — covariance matrices, structure functions, and power spectral densities — used by Atmosphere to generate phase screens.
Selected API reference¶
- OOPAO.phaseStats.variance(atm)[source]¶
Compute the total phase variance from an atmosphere object.
- Parameters:
atm (Atmosphere) – Atmosphere object.
- Returns:
Phase variance in rad² (at 500 nm).
- Return type:
- OOPAO.phaseStats.covariance(rho, atm)[source]¶
Compute the Von Kármán phase covariance at baseline
rho.- Parameters:
rho (numpy.ndarray) – Separation array in metres.
atm (Atmosphere) – Atmosphere object.
- Returns:
Phase covariance values.
- Return type:
- OOPAO.phaseStats.ft_phase_screen(r0, N, delta, L0, l0, seed=None)[source]¶
Generate a single Fourier-transform phase screen with Von Kármán statistics.
- Parameters:
- Returns:
2-D phase screen in metres.
- Return type:
- OOPAO.phaseStats.makeCovarianceMatrix(dm, atm, tel)[source]¶
Build the DM–atmosphere covariance matrix used for KL basis computation.
- Parameters:
dm (DeformableMirror) – Deformable mirror object.
atm (Atmosphere) – Atmosphere object.
tel (Telescope) – Telescope object.
- Returns:
Covariance matrix.
- Return type: