![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
Public Member Functions | |
| str | __str__ (self) |
| int | comp_oneactu (self, int nactu, float ampli) |
| Push the specified actuator and computes the corresponding DM shape. More... | |
| int | comp_shape (self) |
| Compute the DM shape according to commands d_com. More... | |
| int | comp_shape (self, numpy.ndarray[numpy.float32] com) |
| int | comp_shape (self, numpy.ndarray[numpy.uint16] com) |
| int | compute_KLbasis (self, numpy.ndarray[numpy.float32] xpos, numpy.ndarray[numpy.float32] ypos, numpy.ndarray[numpy.int32] indx_pup, int dim, float norm, float ampli) |
| Computes the KL to volt matrix by double diagonalisation (cf. More... | |
| int | kl_loadarrays (self, numpy.ndarray[numpy.float32] rabas, numpy.ndarray[numpy.float32] azbas, numpy.ndarray[numpy.int32] ords, numpy.ndarray[numpy.float32] cr, numpy.ndarray[numpy.float32] cp) |
| Load all the arrays computed during the initialization for a kl DM in a SutraDm object. More... | |
| int | pzt_loadarrays (self, numpy.ndarray[numpy.float32] influ, numpy.ndarray[numpy.int32] influpos, numpy.ndarray[numpy.int32] npoints, numpy.ndarray[numpy.int32] istart, numpy.ndarray[numpy.int32] xoff, numpy.ndarray[numpy.int32] yoff) |
| Load all the arrays computed during the initialization for a pzt DM in a SutraDm object. More... | |
| int | reset_shape (self) |
| Reset the DM shape to zeros (flat) More... | |
| None | set_com (self, numpy.ndarray[numpy.float32] com, bool shape_dm=True) |
| Set the command vector of a SutraDm, and computes the DM shape. More... | |
| int | set_registration (self, float dx, float dy, float theta, float G) |
| Set the registration parameters : dx, dy, theta and G. More... | |
| int | tt_loadarrays (self, numpy.ndarray[numpy.float32] influ) |
| Load all the arrays computed during the initialization for a tt DM in a SutraDm object. More... | |
Properties | |
| G = property | |
| Magnification factor registration in pixels. More... | |
| altitude = property | |
| DM conjugaison altitude. More... | |
| d_KLbasis = property | |
| KL to volts matrix. More... | |
| d_com = property | |
| Current commands of the DM. More... | |
| d_influ = property | |
| Cube of influence functions. More... | |
| d_influpos = property | |
| Influence functions positions in the pupil. More... | |
| d_istart = property | |
| TODO docstring. More... | |
| d_kl = property | |
| SutraKL DM. More... | |
| d_npoints = property | |
| Number of IF that impact each pixel of the pupil. More... | |
| d_shape = property | |
| DM shape. More... | |
| d_xoff = property | |
| TODO docstring. More... | |
| d_yoff = property | |
| TODO docstring. More... | |
| device = property | |
| Device index. More... | |
| dim = property | |
| DM support size. More... | |
| dx = property | |
| X registration in pixels. More... | |
| dy = property | |
| Y registration in pixels. More... | |
| influsize = property | |
| Influence function support size. More... | |
| nactus = property | |
| Number of actuators. More... | |
| push4imat = property | |
| Voltage to apply for imat computation. More... | |
| thetaML = property | |
| thetaML registration in radians More... | |
| type = property | |
| DM type. More... | |
Definition at line 4724 of file sutraWrap.py.
| str sutraWrap.Dm.__str__ | ( | self | ) |
Definition at line 4725 of file sutraWrap.py.
| int sutraWrap.Dm.comp_oneactu | ( | self, | |
| int | nactu, | ||
| float | ampli | ||
| ) |
Push the specified actuator and computes the corresponding DM shape.
| nactu | (int): Actuator index |
| ampli | (float): Volt to apply to this actuator |
Definition at line 4735 of file sutraWrap.py.
| int sutraWrap.Dm.comp_shape | ( | self | ) |
Compute the DM shape according to commands d_com.
Compute the DM shape according to given commands
| com | (np.ndarray[ndim=1,dtype=np.float32_t]): commands to apply |
Compute the DM shape according to given commands
| com | (np.ndarray[ndim=1,dtype=np.uint16_t]): commands to apply |
Definition at line 4757 of file sutraWrap.py.
| int sutraWrap.Dm.comp_shape | ( | self, | |
| numpy.ndarray[numpy.float32] | com | ||
| ) |
| int sutraWrap.Dm.comp_shape | ( | self, | |
| numpy.ndarray[numpy.uint16] | com | ||
| ) |
| int sutraWrap.Dm.compute_KLbasis | ( | self, | |
| numpy.ndarray[numpy.float32] | xpos, | ||
| numpy.ndarray[numpy.float32] | ypos, | ||
| numpy.ndarray[numpy.int32] | indx_pup, | ||
| int | dim, | ||
| float | norm, | ||
| float | ampli | ||
| ) |
Computes the KL to volt matrix by double diagonalisation (cf.
Gendron thesis)
| xpos | (np.ndarray[ndim=1,dtype=np.float32_t]) : x-position of actuators |
| ypos | (np.ndarray[ndim=1,dtype=np.float32_t]) : y-position of actuators |
| indx_pup | (np.ndarray[ndim=1,dtype=np.int32_t]) : indices of pupil points |
| dim | (long) : number of points in the pupil |
| norm | (float) : normalization factor |
| ampli | (float) : amplitude |
Definition at line 4782 of file sutraWrap.py.
| int sutraWrap.Dm.kl_loadarrays | ( | self, | |
| numpy.ndarray[numpy.float32] | rabas, | ||
| numpy.ndarray[numpy.float32] | azbas, | ||
| numpy.ndarray[numpy.int32] | ords, | ||
| numpy.ndarray[numpy.float32] | cr, | ||
| numpy.ndarray[numpy.float32] | cp | ||
| ) |
Load all the arrays computed during the initialization for a kl DM in a SutraDm object.
| rabas | (np.ndarray[ndim=1,dtype=np.float32_t]): TODO docstring |
| azbas | (np.ndarray[ndim=1,dtype=np.float32_t]): |
| ords | (np.ndarray[ndim=1,dtype=np.int32_t]): |
| cr | (np.ndarray[ndim=1,dtype=np.float32_t]): |
| cp | (np.ndarray[ndim=1,dtype=np.float32_t]): |
Definition at line 4798 of file sutraWrap.py.
| int sutraWrap.Dm.pzt_loadarrays | ( | self, | |
| numpy.ndarray[numpy.float32] | influ, | ||
| numpy.ndarray[numpy.int32] | influpos, | ||
| numpy.ndarray[numpy.int32] | npoints, | ||
| numpy.ndarray[numpy.int32] | istart, | ||
| numpy.ndarray[numpy.int32] | xoff, | ||
| numpy.ndarray[numpy.int32] | yoff | ||
| ) |
Load all the arrays computed during the initialization for a pzt DM in a SutraDm object.
| influ | (np.ndarray[ndim=3,dtype=np.float32_t]) : influence functions cube influ2:
influ3:
|
| influpos | (np.ndarray[ndim=1,dtype=np.int32_t]) : positions of the IF in the pupil influpos2: |
| npoints | (np.ndarray[ndim=1,dtype=np.int32_t]) : for each pixel on the DM screen, the number of IF which impact on this pixel |
| istart | (np.ndarray[ndim=1,dtype=np.int32_t]) : |
| xoff | (np.ndarray[ndim=1,dtype=np.int32_t]) : x-offset for shape computation |
| yoff | (np.ndarray[ndim=1,dtype=np.int32_t]) : y-offset or shape computation |
Definition at line 4822 of file sutraWrap.py.
| int sutraWrap.Dm.reset_shape | ( | self | ) |
Reset the DM shape to zeros (flat)
Definition at line 4826 of file sutraWrap.py.
| None sutraWrap.Dm.set_com | ( | self, | |
| numpy.ndarray[numpy.float32] | com, | ||
| bool | shape_dm = True |
||
| ) |
Set the command vector of a SutraDm, and computes the DM shape.
| com | (np.array(ndim=1, dtype=np.float32)): Command vector |
| shape_dm | (bool): (optionnal, default=True) Computes the DM shape |
Definition at line 4836 of file sutraWrap.py.
| int sutraWrap.Dm.set_registration | ( | self, | |
| float | dx, | ||
| float | dy, | ||
| float | theta, | ||
| float | G | ||
| ) |
Set the registration parameters : dx, dy, theta and G.
| dx | (float): X axis misregistration [pixels] |
| dy | (float): Y axis misregistration [pixels] |
| theta | (float): Rotation angle misregistration [radians] |
| G | (float): Magnification factor |
Definition at line 4850 of file sutraWrap.py.
| int sutraWrap.Dm.tt_loadarrays | ( | self, | |
| numpy.ndarray[numpy.float32] | influ | ||
| ) |
Load all the arrays computed during the initialization for a tt DM in a SutraDm object.
| influ | (np.ndarray[ndim=3,dtype=np.float32_t]) : influence functions cube |
Definition at line 4858 of file sutraWrap.py.
|
static |
|
static |
Current commands of the DM.
@n type of : carmaWrap.obj_float
Definition at line 4892 of file sutraWrap.py.
|
static |
Cube of influence functions.
@n type of : carmaWrap.obj_float
Definition at line 4901 of file sutraWrap.py.
|
static |
Influence functions positions in the pupil.
@n type of : carmaWrap.obj_int
Definition at line 4910 of file sutraWrap.py.
|
static |
|
static |
|
static |
|
static |
Number of IF that impact each pixel of the pupil.
@n type of : carmaWrap.obj_int
Definition at line 4937 of file sutraWrap.py.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Magnification factor registration in pixels.
@n type of : float
Definition at line 4865 of file sutraWrap.py.
|
static |
|
static |
|
static |
Voltage to apply for imat computation.
@n type of : float
Definition at line 5027 of file sutraWrap.py.
|
static |
|
static |