![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
Public Member Functions | |
str | __str__ (self) |
int | add_layer (self, str context, int type, float xoff, float yoff) |
Add a phase screen "dm" or "atmos" as layers to consider for raytracing. More... | |
int | comp_image (self, int puponly=0, bool comp_le=True) |
Compute short and long exposure images. More... | |
int | comp_strehl (self, bool do_fit=True) |
Compute Strehl ratio. More... | |
int | init_strehlmeter (self) |
Initialize Strehl ratio computation. More... | |
int | raytrace (self, bool rst=False) |
Raytrace through ncpa layers. More... | |
int | raytrace (self, Telescope tel, bool rst=False) |
int | raytrace (self, Atmos atmos, bool do_async=False) |
int | raytrace (self, Dms dms, bool rst=False, bool do_phase_var=True, bool do_async=False) |
int | raytrace (self, Telescope dms, Atmos atm, Dms tel, bool do_phase_var=True, bool do_async=False) |
int | remove_layer (self, str type, int idx) |
Remove a phase screen for raytracing. More... | |
int | reset_phase (self) |
Reset the phase screen. More... | |
int | reset_strehlmeter (self) |
Reset Strehl ratio. More... | |
None | set_ncpa (self, numpy.ndarray[numpy.float32] data) |
Set the NCPA phase. More... | |
None | set_phase (self, numpy.ndarray[numpy.float32] data) |
Set the target screen phase. More... | |
Properties | |
G = property | |
Magnifying factor for WFS misalignment. More... | |
block_size = property | |
Optimum block size of device. More... | |
d_amplipup = property | |
Complex amplitude in the pupil plane. More... | |
d_image_le = property | |
Long exposure image of the source. More... | |
d_image_se = property | |
Short exposure image of the source. More... | |
d_lgs = property | |
LGS structure of WFS. More... | |
d_ncpa_phase = property | |
NCPA phase. More... | |
d_phase = property | |
Phase screen of the source. More... | |
d_phasepts = property | |
Phase on the valid pixels of the pupil plane. More... | |
d_pupil = property | |
Pupil mask. More... | |
d_wherephase = property | |
Indices of the valid pixels of the pupil. More... | |
device = property | |
GPU device index. More... | |
dx = property | |
X axis WFS misalignment [pixels]. More... | |
dy = property | |
Y axis WFS misalignment [pixels]. More... | |
lambda_um = property | |
Wavelength of the source in µm. More... | |
lgs = property | |
Boolean for LGS. More... | |
mag = property | |
Magnitude of the source. More... | |
npts = property | |
Number of points in the pupil. More... | |
phase_telemetry = property | |
TODO docstring. More... | |
phase_var = property | |
Short exposure variance in the pupil [µm²]. More... | |
phase_var_avg = property | |
Long exposure variance in the pupil [µm²]. More... | |
phase_var_count = property | |
Counter fo long exposure variance computation. More... | |
posx = property | |
X position of the source. More... | |
posy = property | |
Y position of the source. More... | |
ref_strehl = property | |
reference for Strehl computation (Airy) More... | |
scale = property | |
Phase scale factor (2*pi/lambda) More... | |
strehl_counter = property | |
Counter for LE Strehl computation. More... | |
strehl_le = property | |
Long exposure Strehl ratio. More... | |
strehl_se = property | |
Short exposure Strehl ratio. More... | |
thetaML = property | |
Pupil rotation angle for WFS misalignment. More... | |
type = property | |
Type of source (Target or WFS GS) More... | |
xoff = property | |
X offset for raytracing. More... | |
yoff = property | |
Y offset for raytracing. More... | |
zp = property | |
Flux at magnitude 0. More... | |
Definition at line 8053 of file sutraWrap.py.
str sutraWrap.Source.__str__ | ( | self | ) |
Definition at line 8054 of file sutraWrap.py.
int sutraWrap.Source.add_layer | ( | self, | |
str | context, | ||
int | type, | ||
float | xoff, | ||
float | yoff | ||
) |
Add a phase screen "dm" or "atmos" as layers to consider for raytracing.
context | (CarmaContext) : carma or carmaWrap context |
type | (str) : "atmos" or "dm" |
xoff | (float) : x-offset for raytracing |
yoff | (float) : y-offset for raytracing |
Definition at line 8068 of file sutraWrap.py.
int sutraWrap.Source.comp_image | ( | self, | |
int | puponly = 0 , |
||
bool | comp_le = True |
||
) |
Compute short and long exposure images.
puponly | (int) : Airy computation |
comp_le | (bool) : Flag for computing LE image |
Definition at line 8078 of file sutraWrap.py.
int sutraWrap.Source.comp_strehl | ( | self, | |
bool | do_fit = True |
||
) |
Compute Strehl ratio.
Definition at line 8082 of file sutraWrap.py.
int sutraWrap.Source.init_strehlmeter | ( | self | ) |
Initialize Strehl ratio computation.
Definition at line 8086 of file sutraWrap.py.
int sutraWrap.Source.raytrace | ( | self, | |
Atmos | atmos, | ||
bool | do_async = False |
||
) |
int sutraWrap.Source.raytrace | ( | self, | |
bool | rst = False |
||
) |
Raytrace through ncpa layers.
rst | (bool): reset screen phase before raytracing |
Raytrace through telescope aberrations
tel | (SutraTelescope): SutraTelescope object |
rst | (bool): reset screen phase before raytracing |
Raytrace through turbulent layers. Calling this function will automatically reset the screen phase before raytracing.
atmos | (SutraAtmos): SutraAtmos object |
do_async | (bool): asynchronous mode |
Raytrace through DMs
dms | (SutraDms): SutraDms object |
rst | (bool): reset phase screen before raytracing |
do_phase_var | (bool): compute the residual phase variance |
do_async | (bool): asynchronous mode |
Raytrace through all layers (turbu, dms, telescope, ncpa)
tel | (sutra_tel): SutraTelescope object |
atm | (SutraAtmos): SutraAtmos object |
dms | (SutraDms): SutraDms object |
do_phase_var | (bool): compute the residual phase variance |
do_async | (bool): asynchronous mode |
Definition at line 8140 of file sutraWrap.py.
int sutraWrap.Source.raytrace | ( | self, | |
Dms | dms, | ||
bool | rst = False , |
||
bool | do_phase_var = True , |
||
bool | do_async = False |
||
) |
int sutraWrap.Source.raytrace | ( | self, | |
Telescope | tel, | ||
bool | rst = False |
||
) |
int sutraWrap.Source.remove_layer | ( | self, | |
str | type, | ||
int | idx | ||
) |
Remove a phase screen for raytracing.
type | (str) : "atmos" or "dm" |
idx | (int) : index of the DM or turbulent layer to remove |
Definition at line 8158 of file sutraWrap.py.
int sutraWrap.Source.reset_phase | ( | self | ) |
Reset the phase screen.
Definition at line 8162 of file sutraWrap.py.
int sutraWrap.Source.reset_strehlmeter | ( | self | ) |
Reset Strehl ratio.
Definition at line 8166 of file sutraWrap.py.
None sutraWrap.Source.set_ncpa | ( | self, | |
numpy.ndarray[numpy.float32] | data | ||
) |
Set the NCPA phase.
data | (np.array(ndim=2,dtype=np.float32)): NCPA phase to set |
Definition at line 8174 of file sutraWrap.py.
None sutraWrap.Source.set_phase | ( | self, | |
numpy.ndarray[numpy.float32] | data | ||
) |
Set the target screen phase.
data | (np.array(ndim=2,dtype=np.float32)): target phase to set |
Definition at line 8181 of file sutraWrap.py.
|
static |
|
static |
Complex amplitude in the pupil plane.
@n type of : carmaWrap.obj_float_complex
Definition at line 8206 of file sutraWrap.py.
|
static |
Long exposure image of the source.
@n type of : carmaWrap.obj_float
Definition at line 8215 of file sutraWrap.py.
|
static |
Short exposure image of the source.
@n type of : carmaWrap.obj_float
Definition at line 8224 of file sutraWrap.py.
|
static |
|
static |
|
static |
Phase screen of the source.
@n type of : carmaWrap.obj_float
Definition at line 8251 of file sutraWrap.py.
|
static |
Phase on the valid pixels of the pupil plane.
@n type of : carmaWrap.obj_float
Definition at line 8260 of file sutraWrap.py.
|
static |
|
static |
Indices of the valid pixels of the pupil.
@n type of : carmaWrap.obj_int
Definition at line 8278 of file sutraWrap.py.
|
static |
|
static |
|
static |
|
static |
Magnifying factor for WFS misalignment.
@n type of : float
Definition at line 8188 of file sutraWrap.py.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Short exposure variance in the pupil [µm²].
@n type of : float
Definition at line 8359 of file sutraWrap.py.
|
static |
Long exposure variance in the pupil [µm²].
@n type of : float
Definition at line 8368 of file sutraWrap.py.
|
static |
Counter fo long exposure variance computation.
@n type of : int
Definition at line 8377 of file sutraWrap.py.
|
static |
|
static |
|
static |
reference for Strehl computation (Airy)
@n type of : float
Definition at line 8404 of file sutraWrap.py.
|
static |
|
static |
|
static |
|
static |
|
static |
Pupil rotation angle for WFS misalignment.
@n type of : float
Definition at line 8449 of file sutraWrap.py.
|
static |
|
static |
X offset for raytracing.
@n type of : typing.Dict[typing.Tuple[str, int], float]
Definition at line 8467 of file sutraWrap.py.
|
static |
Y offset for raytracing.
@n type of : typing.Dict[typing.Tuple[str, int], float]
Definition at line 8476 of file sutraWrap.py.
|
static |