![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
this class provides the source features to COMPASS More...
#include <sutra_source.h>
Public Member Functions | |
| SutraSource (CarmaContext *context, float xpos, float ypos, float lambda, float mag, float zerop, long size, string type, CarmaObj< float > *pupil, int Npts, int device) | |
| SutraSource (CarmaContext *context, float xpos, float ypos, float lambda, float mag, float zerop, long size, string type, int device) | |
| ~SutraSource () | |
| int | init_source (CarmaContext *context, float xpos, float ypos, float lambda, float mag, float zerop, long size, string type, int device) |
| int | add_layer (string type, int idx, float xoff, float yoff) |
| int | remove_layer (string type, int idx) |
| int | raytrace (SutraTelescope *tel, bool rst=false) |
| int | raytrace (SutraAtmos *atmos, bool async=false) |
| int | raytrace (SutraDms *ydms, bool rst=false, bool do_phase_var=true, bool async=false) |
| int | raytrace (SutraTelescope *tel, SutraAtmos *atmos, SutraDms *ydms, bool do_phase_var=true, bool async=false) |
| int | raytrace (bool rst=false) |
| int | raytrace_shm (SutraAtmos *atmos) |
| int | comp_image (int puponly=0, bool comp_le=true) |
| int | init_strehlmeter () |
| int | reset_strehlmeter () |
| int | comp_strehl (bool do_fit) |
| int | reset_phase () |
Public Attributes | |
| CarmaContext * | current_context |
| int | device |
| device # More... | |
| float | posx |
| x position of target on the sky More... | |
| float | posy |
| y position of target on the sky More... | |
| long | npts |
| number of points in the pupil More... | |
| float | mag |
| brightness of target More... | |
| float | lambda |
| imaging lambda More... | |
| float | zp |
| imaging zero point More... | |
| float | scale |
| phase scale More... | |
| bool | lgs |
| flag for lgs More... | |
| float | G |
| Magnifying factor for WFS misalignment. More... | |
| float | thetaML |
| Pupil rotation angle. More... | |
| float | dx |
| WFS misalignment. More... | |
| float | dy |
| WFS misalignment. More... | |
| string | type |
| type of source : target / wfs More... | |
| int | block_size |
| optimum block size of device More... | |
| float | strehl_se |
| short exposure strehl More... | |
| float | strehl_le |
| long exposure strehl More... | |
| float | ref_strehl |
| reference for strehl computation More... | |
| int | strehl_counter |
| counter for le strehl computation More... | |
| float | phase_var |
| current phase variance in the pupil More... | |
| float | phase_var_avg |
| average phase variance in the pupil More... | |
| int | phase_var_count |
| counter for average phase variance in the pupil More... | |
| SutraPhase * | d_phase |
| phase for this target More... | |
| CarmaHostObj< float > * | phase_telemetry |
| SutraLGS * | d_lgs |
| the lgs object More... | |
| CarmaObj< float > * | d_pupil |
| the pupil mask More... | |
| CarmaObj< float > * | d_image_se |
| the resulting image for this target More... | |
| CarmaObj< float > * | d_image_le |
| the long exposure image for this target More... | |
| CarmaObj< cuFloatComplex > * | d_amplipup |
| the complex amplitude in the pupil plane More... | |
| CarmaObj< float > * | d_phasepts |
| the valid phase points in the pupil (target only) More... | |
| CarmaObj< int > * | d_wherephase |
| positions of valid phase points in the pupil (target only) More... | |
| map< type_screen, float > | xoff |
| x reference for raytracing More... | |
| map< type_screen, float > | yoff |
| y reference for raytracing More... | |
| CarmaObj< float > * | d_ncpa_phase |
| ncpa phase More... | |
| CarmaObj< float > * | d_smallimg |
| temporary array for accurate strehl computation More... | |
| const int | d_smallimg_size = 3 |
this class provides the source features to COMPASS
Definition at line 62 of file sutra_source.h.
| SutraSource::SutraSource | ( | CarmaContext * | context, |
| float | xpos, | ||
| float | ypos, | ||
| float | lambda, | ||
| float | mag, | ||
| float | zerop, | ||
| long | size, | ||
| string | type, | ||
| CarmaObj< float > * | pupil, | ||
| int | Npts, | ||
| int | device | ||
| ) |
| SutraSource::SutraSource | ( | CarmaContext * | context, |
| float | xpos, | ||
| float | ypos, | ||
| float | lambda, | ||
| float | mag, | ||
| float | zerop, | ||
| long | size, | ||
| string | type, | ||
| int | device | ||
| ) |
| SutraSource::~SutraSource | ( | ) |
| int SutraSource::add_layer | ( | string | type, |
| int | idx, | ||
| float | xoff, | ||
| float | yoff | ||
| ) |
| int SutraSource::comp_image | ( | int | puponly = 0, |
| bool | comp_le = true |
||
| ) |
| int SutraSource::comp_strehl | ( | bool | do_fit | ) |
| int SutraSource::init_source | ( | CarmaContext * | context, |
| float | xpos, | ||
| float | ypos, | ||
| float | lambda, | ||
| float | mag, | ||
| float | zerop, | ||
| long | size, | ||
| string | type, | ||
| int | device | ||
| ) |
| int SutraSource::init_strehlmeter | ( | ) |
| int SutraSource::raytrace | ( | bool | rst = false | ) |
| int SutraSource::raytrace | ( | SutraAtmos * | atmos, |
| bool | async = false |
||
| ) |
| int SutraSource::raytrace | ( | SutraDms * | ydms, |
| bool | rst = false, |
||
| bool | do_phase_var = true, |
||
| bool | async = false |
||
| ) |
| int SutraSource::raytrace | ( | SutraTelescope * | tel, |
| bool | rst = false |
||
| ) |
| int SutraSource::raytrace | ( | SutraTelescope * | tel, |
| SutraAtmos * | atmos, | ||
| SutraDms * | ydms, | ||
| bool | do_phase_var = true, |
||
| bool | async = false |
||
| ) |
| int SutraSource::raytrace_shm | ( | SutraAtmos * | atmos | ) |
| int SutraSource::remove_layer | ( | string | type, |
| int | idx | ||
| ) |
| int SutraSource::reset_phase | ( | ) |
| int SutraSource::reset_strehlmeter | ( | ) |
| int SutraSource::block_size |
optimum block size of device
Definition at line 94 of file sutra_source.h.
| CarmaContext* SutraSource::current_context |
Definition at line 64 of file sutra_source.h.
| CarmaObj<cuFloatComplex>* SutraSource::d_amplipup |
the complex amplitude in the pupil plane
Definition at line 125 of file sutra_source.h.
| CarmaObj<float>* SutraSource::d_image_le |
the long exposure image for this target
Definition at line 123 of file sutra_source.h.
| CarmaObj<float>* SutraSource::d_image_se |
the resulting image for this target
Definition at line 121 of file sutra_source.h.
| SutraLGS* SutraSource::d_lgs |
the lgs object
Definition at line 117 of file sutra_source.h.
| CarmaObj<float>* SutraSource::d_ncpa_phase |
ncpa phase
Definition at line 135 of file sutra_source.h.
| SutraPhase* SutraSource::d_phase |
phase for this target
Definition at line 112 of file sutra_source.h.
| CarmaObj<float>* SutraSource::d_phasepts |
the valid phase points in the pupil (target only)
Definition at line 127 of file sutra_source.h.
| CarmaObj<float>* SutraSource::d_pupil |
the pupil mask
Definition at line 119 of file sutra_source.h.
| CarmaObj<float>* SutraSource::d_smallimg |
temporary array for accurate strehl computation
Definition at line 137 of file sutra_source.h.
| const int SutraSource::d_smallimg_size = 3 |
Definition at line 138 of file sutra_source.h.
| CarmaObj<int>* SutraSource::d_wherephase |
positions of valid phase points in the pupil (target only)
Definition at line 129 of file sutra_source.h.
| int SutraSource::device |
device #
Definition at line 66 of file sutra_source.h.
| float SutraSource::dx |
WFS misalignment.
Definition at line 88 of file sutra_source.h.
| float SutraSource::dy |
WFS misalignment.
Definition at line 90 of file sutra_source.h.
| float SutraSource::G |
Magnifying factor for WFS misalignment.
Definition at line 84 of file sutra_source.h.
| float SutraSource::lambda |
imaging lambda
Definition at line 76 of file sutra_source.h.
| bool SutraSource::lgs |
flag for lgs
Definition at line 82 of file sutra_source.h.
| float SutraSource::mag |
brightness of target
Definition at line 74 of file sutra_source.h.
| long SutraSource::npts |
number of points in the pupil
Definition at line 72 of file sutra_source.h.
| CarmaHostObj<float>* SutraSource::phase_telemetry |
Definition at line 115 of file sutra_source.h.
| float SutraSource::phase_var |
current phase variance in the pupil
Definition at line 105 of file sutra_source.h.
| float SutraSource::phase_var_avg |
average phase variance in the pupil
Definition at line 107 of file sutra_source.h.
| int SutraSource::phase_var_count |
counter for average phase variance in the pupil
Definition at line 109 of file sutra_source.h.
| float SutraSource::posx |
x position of target on the sky
Definition at line 68 of file sutra_source.h.
| float SutraSource::posy |
y position of target on the sky
Definition at line 70 of file sutra_source.h.
| float SutraSource::ref_strehl |
reference for strehl computation
Definition at line 101 of file sutra_source.h.
| float SutraSource::scale |
phase scale
Definition at line 80 of file sutra_source.h.
| int SutraSource::strehl_counter |
counter for le strehl computation
Definition at line 103 of file sutra_source.h.
| float SutraSource::strehl_le |
long exposure strehl
Definition at line 99 of file sutra_source.h.
| float SutraSource::strehl_se |
short exposure strehl
Definition at line 97 of file sutra_source.h.
| float SutraSource::thetaML |
Pupil rotation angle.
Definition at line 86 of file sutra_source.h.
| string SutraSource::type |
type of source : target / wfs
Definition at line 92 of file sutra_source.h.
| map<type_screen, float> SutraSource::xoff |
x reference for raytracing
Definition at line 131 of file sutra_source.h.
| map<type_screen, float> SutraSource::yoff |
y reference for raytracing
Definition at line 133 of file sutra_source.h.
| float SutraSource::zp |
imaging zero point
Definition at line 78 of file sutra_source.h.