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

Public Member Functions

int init_weights (self)
 Initializes WCOG computation. More...
 
int load_weights (self, numpy.ndarray[numpy.float32] weights, int ndim)
 Load weights on WCOG. More...
 
int set_threshold (self, float thresh)
 Set the threshold value of a TCOG centroider. More...
 
- Public Member Functions inherited from sutraWrap.Centroider_FF
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.float32] 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.float32] img, int n, int location=-1)
 
int load_img (self, carmaWrap.obj_float 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

 d_weights = property
 Weights applied. More...
 
 threshold = property
 Threshold value. More...
 
- Properties inherited from sutraWrap.Centroider_FF
 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 1368 of file sutraWrap.py.

Member Function Documentation

◆ init_weights()

int sutraWrap.CentroiderWCOG_FF.init_weights (   self)

Initializes WCOG computation.

Definition at line 1372 of file sutraWrap.py.

◆ load_weights()

int sutraWrap.CentroiderWCOG_FF.load_weights (   self,
numpy.ndarray[numpy.float32]  weights,
int  ndim 
)

Load weights on WCOG.

Parameters
weight(np.array[ndim=, dtype=np.float32]: weights
ndim(int): TODO: docstring

Definition at line 1382 of file sutraWrap.py.

◆ set_threshold()

int sutraWrap.CentroiderWCOG_FF.set_threshold (   self,
float  thresh 
)

Set the threshold value of a TCOG centroider.

Parameters
thresh(float) : threshold value to set

Definition at line 1391 of file sutraWrap.py.

Property Documentation

◆ d_weights

sutraWrap.CentroiderWCOG_FF.d_weights = property
static

Weights applied.

   @n type of :  carmaWrap.obj_float

Definition at line 1398 of file sutraWrap.py.

◆ threshold

sutraWrap.CentroiderWCOG_FF.threshold = property
static

Threshold value.

   @n type of :  float

Definition at line 1407 of file sutraWrap.py.


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