mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Definition at line 30 of file turbSequence.hpp.
#include <ao/sim/turbSequence.hpp>
Public Types | |
typedef _realT | realT |
typedef Eigen::Array< realT, Eigen::Dynamic, Eigen::Dynamic > | imageT |
Public Member Functions | |
turbSequence () | |
int | size () |
Return the size of the turbulence screens. | |
int | nPerCube () |
Return the number of frames per cube. | |
int | files () |
Return the number of files. | |
int | frames () |
Return the number of frames in each file. | |
realT | wfPS () |
void | wfPS (realT ps) |
realT | F0Photons () |
void | F0Photons (realT f0) |
realT | starMag () |
void | starMag (realT sm) |
realT | pixVal () |
void | calcPixVal () |
int | turbFnames (std::string dir, int max=0) |
Get the file names of the sequence assuming they are stored in a directory. | |
void | openPhaseFrame (int fn) |
void | nextPhase (wavefront< realT > &wf) |
void | nextWF (wavefront< realT > &wf) |
Public Attributes | |
std::vector< std::string > | _phaseFnames |
std::vector< std::string > | _ampFnames |
int | _size { 0 } |
int | _nPerCube { 0 } |
int | _files { 0 } |
int | _frames { 0 } |
int | _currFileNo { 0 } |
int | _currFrameNo { 0 } |
realT | _wfPS { 1 } |
realT | _F0Photons { 2e11 } |
realT | _starMag { 0 } |
realT | _pixVal |
imageT * | _pupil |
bool | _loopClosed |
improc::eigenCube< realT > | _currPhase |
improc::eigenCube< realT > | _currAmp |
bool | _phaseOnly { false } |
typedef Eigen::Array<realT, Eigen::Dynamic, Eigen::Dynamic> mx::AO::sim::turbSequence< _realT >::imageT |
Definition at line 33 of file turbSequence.hpp.
typedef _realT mx::AO::sim::turbSequence< _realT >::realT |
Definition at line 32 of file turbSequence.hpp.
|
inline |
Definition at line 65 of file turbSequence.hpp.
|
inline |
Definition at line 143 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_F0Photons, mx::AO::sim::turbSequence< _realT >::_pixVal, mx::AO::sim::turbSequence< _realT >::_starMag, and mx::AO::sim::turbSequence< _realT >::_wfPS.
Referenced by mx::AO::sim::turbSequence< _realT >::F0Photons(), mx::AO::sim::turbSequence< _realT >::starMag(), and mx::AO::sim::turbSequence< _realT >::wfPS().
|
inline |
Definition at line 116 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_F0Photons.
|
inline |
Definition at line 121 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_F0Photons, and mx::AO::sim::turbSequence< _realT >::calcPixVal().
|
inline |
Return the number of files.
Definition at line 91 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_files.
|
inline |
Return the number of frames in each file.
Definition at line 100 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_frames.
void mx::AO::sim::turbSequence< realT >::nextPhase | ( | wavefront< realT > & | wf | ) |
Definition at line 223 of file turbSequence.hpp.
References mx::AO::sim::wavefront< _realT >::amplitude, and mx::AO::sim::wavefront< _realT >::phase.
void mx::AO::sim::turbSequence< realT >::nextWF | ( | wavefront< realT > & | wf | ) |
Definition at line 252 of file turbSequence.hpp.
References mx::AO::sim::wavefront< _realT >::amplitude, and mx::AO::sim::wavefront< _realT >::phase.
|
inline |
Return the number of frames per cube.
Definition at line 82 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_nPerCube.
void mx::AO::sim::turbSequence< realT >::openPhaseFrame | ( | int | fn | ) |
Definition at line 203 of file turbSequence.hpp.
References mx::fits::fitsFile< dataT >::close(), and mx::fits::fitsFile< dataT >::read().
|
inline |
Definition at line 138 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_pixVal.
|
inline |
Return the size of the turbulence screens.
Definition at line 73 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_size.
|
inline |
Definition at line 127 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_starMag.
|
inline |
Definition at line 132 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_starMag, and mx::AO::sim::turbSequence< _realT >::calcPixVal().
int mx::AO::sim::turbSequence< realT >::turbFnames | ( | std::string | dir, |
int | max = 0 |
||
) |
Get the file names of the sequence assuming they are stored in a directory.
[in] | dir | is the directory to search for phase and amplitude files. |
[in] | max | [optional] specifies the maximum number of files to include the file name list. |
0 | on success. |
-1 | on error. |
Definition at line 167 of file turbSequence.hpp.
References mx::ioutils::getFileNames(), MXE_FILENOTFOUND, and mxError.
|
inline |
Definition at line 105 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_wfPS.
|
inline |
Definition at line 110 of file turbSequence.hpp.
References mx::AO::sim::turbSequence< _realT >::_wfPS, and mx::AO::sim::turbSequence< _realT >::calcPixVal().
std::vector<std::string> mx::AO::sim::turbSequence< _realT >::_ampFnames |
Definition at line 36 of file turbSequence.hpp.
improc::eigenCube<realT> mx::AO::sim::turbSequence< _realT >::_currAmp |
Definition at line 61 of file turbSequence.hpp.
int mx::AO::sim::turbSequence< _realT >::_currFileNo { 0 } |
Definition at line 46 of file turbSequence.hpp.
int mx::AO::sim::turbSequence< _realT >::_currFrameNo { 0 } |
Definition at line 47 of file turbSequence.hpp.
improc::eigenCube<realT> mx::AO::sim::turbSequence< _realT >::_currPhase |
Definition at line 60 of file turbSequence.hpp.
realT mx::AO::sim::turbSequence< _realT >::_F0Photons { 2e11 } |
Definition at line 50 of file turbSequence.hpp.
Referenced by mx::AO::sim::turbSequence< _realT >::calcPixVal(), mx::AO::sim::turbSequence< _realT >::F0Photons(), and mx::AO::sim::turbSequence< _realT >::F0Photons().
int mx::AO::sim::turbSequence< _realT >::_files { 0 } |
Definition at line 42 of file turbSequence.hpp.
Referenced by mx::AO::sim::turbSequence< _realT >::files().
int mx::AO::sim::turbSequence< _realT >::_frames { 0 } |
Definition at line 44 of file turbSequence.hpp.
Referenced by mx::AO::sim::turbSequence< _realT >::frames().
bool mx::AO::sim::turbSequence< _realT >::_loopClosed |
Definition at line 58 of file turbSequence.hpp.
int mx::AO::sim::turbSequence< _realT >::_nPerCube { 0 } |
Definition at line 40 of file turbSequence.hpp.
Referenced by mx::AO::sim::turbSequence< _realT >::nPerCube().
std::vector<std::string> mx::AO::sim::turbSequence< _realT >::_phaseFnames |
Definition at line 35 of file turbSequence.hpp.
bool mx::AO::sim::turbSequence< _realT >::_phaseOnly { false } |
Definition at line 63 of file turbSequence.hpp.
realT mx::AO::sim::turbSequence< _realT >::_pixVal |
Definition at line 54 of file turbSequence.hpp.
Referenced by mx::AO::sim::turbSequence< _realT >::calcPixVal(), and mx::AO::sim::turbSequence< _realT >::pixVal().
imageT* mx::AO::sim::turbSequence< _realT >::_pupil |
Definition at line 56 of file turbSequence.hpp.
int mx::AO::sim::turbSequence< _realT >::_size { 0 } |
Definition at line 38 of file turbSequence.hpp.
Referenced by mx::AO::sim::turbSequence< _realT >::size().
realT mx::AO::sim::turbSequence< _realT >::_starMag { 0 } |
Definition at line 52 of file turbSequence.hpp.
Referenced by mx::AO::sim::turbSequence< _realT >::calcPixVal(), mx::AO::sim::turbSequence< _realT >::starMag(), and mx::AO::sim::turbSequence< _realT >::starMag().
realT mx::AO::sim::turbSequence< _realT >::_wfPS { 1 } |
Definition at line 49 of file turbSequence.hpp.
Referenced by mx::AO::sim::turbSequence< _realT >::calcPixVal(), mx::AO::sim::turbSequence< _realT >::wfPS(), and mx::AO::sim::turbSequence< _realT >::wfPS().