mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
zernikeCovariance.hpp File Reference

Calculation of the modal covariance in the zernike basis. More...

Calculation of the modal covariance in the zernike basis.

Author
Jared R. Males (jared.nosp@m.male.nosp@m.s@gma.nosp@m.il.c.nosp@m.om)

Definition in file zernikeCovariance.hpp.

Go to the source code of this file.

Classes

struct  mx::AO::analysis::zernikeCovariance< realT, aosysT >
 Structure to manage the zernike mode covariance calculation, passed to integration functions. More...
 

Namespaces

namespace  mx
 The mxlib c++ namespace.
 

Functions

template<typename realT , typename aosysT >
int mx::AO::analysis::zernikeVarVec (const std::string &fname, int N, aosysT &aosys, realT absTol, realT relTol, bool modifed=true)
 Calculate a vector of zernike mode variances.
 
template<typename realT , typename aosysT >
int mx::AO::analysis::zernikePSDMap (improc::eigenImage< realT > &var, improc::eigenImage< realT > &psd, int N, int overSample, aosysT &aosys)
 Calculate a map of zernike variances by convolution with the PSD.
 
template<typename realT >
int mx::AO::analysis::zernikeCovarMap (const std::string &fname, int N, realT D, realT L_0, bool subPist, bool subTilt, realT absTol, realT relTol, bool modified=true)
 

Function Documentation

◆ zernikeCovarMap()

template<typename realT >
int mx::AO::analysis::zernikeCovarMap ( const std::string &  fname,
int  N,
realT  D,
realT  L_0,
bool  subPist,
bool  subTilt,
realT  absTol,
realT  relTol,
bool  modified = true 
)

◆ zernikePSDMap()

template<typename realT , typename aosysT >
int mx::AO::analysis::zernikePSDMap ( improc::eigenImage< realT > &  var,
improc::eigenImage< realT > &  psd,
int  N,
int  overSample,
aosysT &  aosys 
)

Calculate a map of zernike variances by convolution with the PSD.

Uses the Airy pattern for the circularly unobstructed aperture.

Returns
0 on success
-1 on error
Parameters
[out]varThe variance estimated by convolution with the PSD
[out]psdthe PSD map
[in]Nthe number of components to analyze
aosys[in[ the AO system defining the PSD characteristics.

Definition at line 314 of file zernikeCovariance.hpp.

References mx::math::func::airyPattern(), mx::math::six_fifths(), mx::AO::analysis::varmapToImage(), and mx::AO::analysis::zernikePSDMap().

Referenced by mx::AO::analysis::zernikePSDMap().

◆ zernikeVarVec()

template<typename realT , typename aosysT >
int mx::AO::analysis::zernikeVarVec ( const std::string &  fname,
int  N,
aosysT &  aosys,
realT  absTol,
realT  relTol,
bool  modifed = true 
)