COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
sutraWrap.CentroiderPYR_UF Class Reference
Inheritance diagram for sutraWrap.CentroiderPYR_UF:
Collaboration diagram for sutraWrap.CentroiderPYR_UF:

Public Member Functions

int set_pyr_method (self, int method)
 Set the pyramid method for slopes computation. More...
 
int set_pyr_thresh (self, float thresh)
 Set the pyramid threshold value. More...
 
- Public Member Functions inherited from sutraWrap.Centroider_UF
int calibrate_img (self)
 Performs the raw WFS frame calibration. More...
 
int calibrate_img_validPix (self)
 Performs the raw WFS frame calibration only on useful pixels. More...
 
int get_cog (self)
 Computes centroids and stores it in d_slopes of the WFS. More...
 
int init_calib (self, int n, int m)
 Initialize data used for calibration. More...
 
int init_img_raw (self, int n, int m)
 Initialize array to store raw WFS image in RTC standalone mode. More...
 
int load_img (self, numpy.ndarray[numpy.uint16] img, int m, int n, int location)
 Load an image in a RTC standalone (host to device) More...
 
int load_img (self, numpy.ndarray[numpy.uint16] img, int n, int location=-1)
 
int load_img (self, carmaWrap.obj_uint16 img)
 
int load_validpos (self, numpy.ndarray[numpy.int32] validx, numpy.ndarray[numpy.int32] validy, int N)
 Load the validx and validy arrays. More...
 
int set_centroids_ref (self, numpy.ndarray[numpy.float32] refslopes)
 Set the references slopes. More...
 
int set_dark (self, numpy.ndarray[numpy.float32] dark, int n)
 Set the dark frame for calibration. More...
 
int set_flat (self, numpy.ndarray[numpy.float32] flat, int n)
 Set the flat frame for calibration. More...
 
int set_lutPix (self, numpy.ndarray[numpy.int32] lutPix, int n)
 Set the lookup Table Pixel vector for calibration. More...
 
int set_npix (self, int npix)
 Set the number of pixels per subap for a RTC standalone. More...
 
int set_nxsub (self, int nxsub)
 Set the number of ssp across the pupil diameter for a RTC standalone. More...
 
int set_offset (self, float offset)
 Set the controider offset [pixels]. More...
 
int set_scale (self, float scale)
 Set the controider scale factor. More...
 

Properties

 pyr_method = property
 Method used for pyramid slopes compuation. More...
 
- Properties inherited from sutraWrap.Centroider_UF
 context = property
 GPU context. More...
 
 d_TT_slopes = property
 Tip/tilt slopes removed after filtering. More...
 
 d_bincube = property
 Bincube of the WFS image. More...
 
 d_centroids_ref = property
 Reference slopes vector. More...
 
 d_dark = property
 Dark frame for calibration. More...
 
 d_flat = property
 Flat frame for calibration. More...
 
 d_img = property
 Calibrated WFS image. More...
 
 d_img_raw = property
 Raw WFS image. More...
 
 d_intensities = property
 intensities of the WFS image More...
 
 d_lutPix = property
 Lookup Table of pixels for calibration. More...
 
 d_ref_Tilt = property
 Tilt mode reference for filtering. More...
 
 d_ref_Tip = property
 Tip mode reference for filtering. More...
 
 d_validMask = property
 Flat frame for calibration. More...
 
 d_validx = property
 X positions of the valid ssp. More...
 
 d_validy = property
 Y positions of the valid ssp. More...
 
 device = property
 GPU device index. More...
 
 filter_TT = property
 Tip/tilt filtering flag. More...
 
 npix = property
 Number of pixels along a side of WFS subap. More...
 
 nslopes = property
 Number of slopes. More...
 
 nvalid = property
 Number of valid ssp of the WFS. More...
 
 nxsub = property
 Number of ssp across the pupil diameter. More...
 
 offset = property
 Offset for centroiding computation. More...
 
 scale = property
 Scale factor to get slopes in arcsec. More...
 
 type = property
 Centroider type. More...
 
 wfs = property
 SutraWfs handled by this centroider. More...
 

Detailed Description

Definition at line 1296 of file sutraWrap.py.

Member Function Documentation

◆ set_pyr_method()

int sutraWrap.CentroiderPYR_UF.set_pyr_method (   self,
int  method 
)

Set the pyramid method for slopes computation.

Parameters
method(int) : new centroiding method (0: nosinus global
1sinus global
2nosinus local
3sinus local) favor use of shesha_constant.PyrCentroiderMethod

Definition at line 1309 of file sutraWrap.py.

◆ set_pyr_thresh()

int sutraWrap.CentroiderPYR_UF.set_pyr_thresh (   self,
float  thresh 
)

Set the pyramid threshold value.

Parameters
thresh(float) : threshold value

Definition at line 1317 of file sutraWrap.py.

Property Documentation

◆ pyr_method

sutraWrap.CentroiderPYR_UF.pyr_method = property
static

Method used for pyramid slopes compuation.

   @n type of :  str

Definition at line 1324 of file sutraWrap.py.


The documentation for this class was generated from the following file: