|
mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
A simulated AO system.
Minimum requirement for _turbSeqT:
Definition at line 66 of file simulatedAOSystem.hpp.
#include <ao/sim/simulatedAOSystem.hpp>
Public Types | |
| typedef _realT | realT |
| The floating point type used for all calculations. | |
| typedef mx::AO::sim::wavefront< realT > | wavefrontT |
| The wavefront type. | |
| typedef Eigen::Array< realT, Eigen::Dynamic, Eigen::Dynamic > | imageT |
| The real image type. | |
| typedef wfp::imagingArray< std::complex< realT >, wfp::fftwAllocator< std::complex< realT > >, 0 > | complexImageT |
| The complex image type. | |
Public Member Functions | |
| simulatedAOSystem () | |
| Default c'tor. | |
| ~simulatedAOSystem () | |
| Destructor. | |
| int | initSystem (const std::string &sysName, typename dmT::specT &dmSpec, const std::string &wfsName, const std::string &pupilName, const int &wfSz) |
| Initialize the system. | |
| void | takeResponseMatrix (realT amp, std::string rmatName, int nmodes=0) |
| Measure the system response matrix. | |
Public Attributes | |
| std::string | _sysName |
| The system name for use in mx::AO::path. | |
| std::string | _wfsName |
| The WFS name for use in the mx::AO::path. | |
| std::string | _pupilName |
| The pupil name for use in the mx::AO::path. | |
| imageT | _pupil |
| imageT | _pupilMask |
Protected Attributes | |
| realT | m_simStep |
| The simulation step size in seconds. | |
Member Access | |
| int | simStep (const double &ss) |
| Set the simulation step size. | |
| double | simStep () |
| Get the simulation step size. | |
| typedef wfp::imagingArray<std::complex<realT>, wfp::fftwAllocator<std::complex<realT> >, 0> mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::complexImageT |
The complex image type.
Definition at line 76 of file simulatedAOSystem.hpp.
| typedef Eigen::Array<realT, Eigen::Dynamic, Eigen::Dynamic> mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::imageT |
The real image type.
Definition at line 73 of file simulatedAOSystem.hpp.
| typedef _realT mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::realT |
The floating point type used for all calculations.
Definition at line 69 of file simulatedAOSystem.hpp.
| typedef mx::AO::sim::wavefront<realT> mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::wavefrontT |
The wavefront type.
Definition at line 71 of file simulatedAOSystem.hpp.
| mx::AO::sim::simulatedAOSystem< realT, wfsT, reconT, filterT, dmT, turbSeqT, coronT >::simulatedAOSystem | ( | ) |
| mx::AO::sim::simulatedAOSystem< realT, wfsT, reconT, filterT, dmT, turbSeqT, coronT >::~simulatedAOSystem | ( | ) |
Destructor.
Definition at line 319 of file simulatedAOSystem.hpp.
References mx::ioutils::convertToString(), and mx::fits::fitsFile< dataT >::write().
| int mx::AO::sim::simulatedAOSystem< realT, wfsT, reconT, filterT, dmT, turbSeqT, coronT >::initSystem | ( | const std::string & | sysName, |
| typename dmT::specT & | dmSpec, | ||
| const std::string & | wfsName, | ||
| const std::string & | pupilName, | ||
| const int & | wfSz | ||
| ) |
Initialize the system.
Initializes the basic parts of the system.
| [in] | sysName | System name. |
| [in] | dmSpec | DM Specification. |
| [in] | wfsName | WFS Name. |
| [in] | pupilName | Name of the system pupil. |
| [in] | wfSz | Size of the wavefront used for propagation. |
Definition at line 360 of file simulatedAOSystem.hpp.
References mx::fits::fitsFile< dataT >::read().
| double mx::AO::sim::simulatedAOSystem< realT, wfsT, reconT, filterT, dmT, turbSeqT, coronT >::simStep | ( | ) |
Get the simulation step size.
Definition at line 1017 of file simulatedAOSystem.hpp.
| int mx::AO::sim::simulatedAOSystem< realT, wfsT, reconT, filterT, dmT, turbSeqT, coronT >::simStep | ( | const double & | ss | ) |
Set the simulation step size.
Units of step size are seconds.
| [in] | ss | the new value of simulation stepsize [sec] |
Definition at line 1003 of file simulatedAOSystem.hpp.
| void mx::AO::sim::simulatedAOSystem< realT, wfsT, reconT, filterT, dmT, turbSeqT, coronT >::takeResponseMatrix | ( | realT | amp, |
| std::string | rmatName, | ||
| int | nmodes = 0 |
||
| ) |
Measure the system response matrix.
System should be initialized with initSystemCal.
| amp | |
| rmatName | |
| nmodes |
Definition at line 494 of file simulatedAOSystem.hpp.
References mx::sys::get_curr_time().
| imageT mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::_pupil |
The system pupil. This is generally a binary mask and will be applied at various points in the propagation.
Definition at line 211 of file simulatedAOSystem.hpp.
| imageT mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::_pupilMask |
A pupil mask which is applied once at the beginning of propagation. Could be apodized and/or different from _pupil.
Definition at line 213 of file simulatedAOSystem.hpp.
| std::string mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::_pupilName |
The pupil name for use in the mx::AO::path.
Definition at line 90 of file simulatedAOSystem.hpp.
| std::string mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::_sysName |
The system name for use in mx::AO::path.
Definition at line 88 of file simulatedAOSystem.hpp.
| std::string mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::_wfsName |
The WFS name for use in the mx::AO::path.
Definition at line 89 of file simulatedAOSystem.hpp.
| int mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::m_saveSz { 0 } |
Image outputs
Definition at line 152 of file simulatedAOSystem.hpp.
|
protected |
The simulation step size in seconds.
Definition at line 122 of file simulatedAOSystem.hpp.
| bool mx::AO::sim::simulatedAOSystem< _realT, _wfsT, _reconT, _filterT, _dmT, _turbSeqT, _coronT >::m_writeWavefronts { true } |
Wavefront Outputs
Definition at line 137 of file simulatedAOSystem.hpp.