![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
Public Member Functions | |
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 | |
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... | |
Definition at line 254 of file sutraWrap.py.
int sutraWrap.Centroider_FF.calibrate_img | ( | self | ) |
Performs the raw WFS frame calibration.
Definition at line 258 of file sutraWrap.py.
int sutraWrap.Centroider_FF.calibrate_img_validPix | ( | self | ) |
Performs the raw WFS frame calibration only on useful pixels.
Definition at line 262 of file sutraWrap.py.
int sutraWrap.Centroider_FF.get_cog | ( | self | ) |
Computes centroids and stores it in d_slopes of the WFS.
Definition at line 266 of file sutraWrap.py.
int sutraWrap.Centroider_FF.init_calib | ( | self, | |
int | n, | ||
int | m | ||
) |
Initialize data used for calibration.
n | (int): image support height |
m | (int): image support width |
Definition at line 275 of file sutraWrap.py.
int sutraWrap.Centroider_FF.init_img_raw | ( | self, | |
int | n, | ||
int | m | ||
) |
Initialize array to store raw WFS image in RTC standalone mode.
n | (int): image support height |
m | (int): image support width |
Definition at line 284 of file sutraWrap.py.
int sutraWrap.Centroider_FF.load_img | ( | self, | |
carmaWrap.obj_float | img | ||
) |
int sutraWrap.Centroider_FF.load_img | ( | self, | |
numpy.ndarray[numpy.float32] | img, | ||
int | m, | ||
int | n, | ||
int | location | ||
) |
Load an image in a RTC standalone (host to device)
img | (np.ndarray[ndim=2, dtype=np.float32_t]): SH image |
m | (int): Image support size X |
n | (int): Image support size Y |
location | (int): If -1, image is located on the CPU (hostToDevice). Else, it is the GPU index where the image is located |
Load a square image (n, n) in a RTC standalone
img | (np.ndarray[ndim=2, dtype=np.float32_t]): SH image |
n | (int): Image support size along one axis |
location | (int): (optionnal) If -1 (default), image is located on the CPU (hostToDevice). Else, it is the GPU index where the image is located |
Load an image in a RTC standalone from a CarmaObj
img | (CarmaObj): SH image |
Definition at line 317 of file sutraWrap.py.
int sutraWrap.Centroider_FF.load_img | ( | self, | |
numpy.ndarray[numpy.float32] | img, | ||
int | n, | ||
int | location = -1 |
||
) |
int sutraWrap.Centroider_FF.load_validpos | ( | self, | |
numpy.ndarray[numpy.int32] | validx, | ||
numpy.ndarray[numpy.int32] | validy, | ||
int | N | ||
) |
Load the validx and validy arrays.
validx | (np.array[ndim=1,dtype=np.float32]): X positions of the valid ssp |
validy | (np.array[ndim=1,dtype=np.float32]): Y positions of the valid ssp |
N | (int): arrays size |
Definition at line 332 of file sutraWrap.py.
int sutraWrap.Centroider_FF.set_centroids_ref | ( | self, | |
numpy.ndarray[numpy.float32] | refslopes | ||
) |
Set the references slopes.
refslopes | (np.array[ndim1,dtype=np.float32]): reference slopes to set |
Definition at line 339 of file sutraWrap.py.
int sutraWrap.Centroider_FF.set_dark | ( | self, | |
numpy.ndarray[numpy.float32] | dark, | ||
int | n | ||
) |
Set the dark frame for calibration.
dark | (np.ndarray[ndim=2, dtype=np.float32_t): dark frame (size n by n) |
n | (int): image support size |
Definition at line 348 of file sutraWrap.py.
int sutraWrap.Centroider_FF.set_flat | ( | self, | |
numpy.ndarray[numpy.float32] | flat, | ||
int | n | ||
) |
Set the flat frame for calibration.
flat | (np.ndarray[ndim=2, dtype=np.float32_t): flat frame (size n by n) |
n | (int): image support size |
Definition at line 357 of file sutraWrap.py.
int sutraWrap.Centroider_FF.set_lutPix | ( | self, | |
numpy.ndarray[numpy.int32] | lutPix, | ||
int | n | ||
) |
Set the lookup Table Pixel vector for calibration.
lutPix | (np.ndarray[ndim=1, dtype=np.float32_t): lutPix vector |
n | (int): image pixel size |
Definition at line 366 of file sutraWrap.py.
int sutraWrap.Centroider_FF.set_npix | ( | self, | |
int | npix | ||
) |
Set the number of pixels per subap for a RTC standalone.
npix | (int): number of pixel along a subap. side |
Definition at line 373 of file sutraWrap.py.
int sutraWrap.Centroider_FF.set_nxsub | ( | self, | |
int | nxsub | ||
) |
Set the number of ssp across the pupil diameter for a RTC standalone.
nxsub | (int): number of ssp across the pupil diameter |
Definition at line 380 of file sutraWrap.py.
int sutraWrap.Centroider_FF.set_offset | ( | self, | |
float | offset | ||
) |
Set the controider offset [pixels].
offset | (float): new offset [pixels] |
Definition at line 387 of file sutraWrap.py.
int sutraWrap.Centroider_FF.set_scale | ( | self, | |
float | scale | ||
) |
Set the controider scale factor.
scale | (float): new scale factor |
Definition at line 394 of file sutraWrap.py.
|
static |
|
static |
Bincube of the WFS image.
@n type of : carmaWrap.obj_float
Definition at line 419 of file sutraWrap.py.
|
static |
Reference slopes vector.
@n type of : carmaWrap.obj_float
Definition at line 428 of file sutraWrap.py.
|
static |
Dark frame for calibration.
@n type of : carmaWrap.obj_float
Definition at line 437 of file sutraWrap.py.
|
static |
Flat frame for calibration.
@n type of : carmaWrap.obj_float
Definition at line 446 of file sutraWrap.py.
|
static |
|
static |
|
static |
intensities of the WFS image
@n type of : carmaWrap.obj_float
Definition at line 473 of file sutraWrap.py.
|
static |
Lookup Table of pixels for calibration.
@n type of : carmaWrap.obj_int
Definition at line 482 of file sutraWrap.py.
|
static |
Tilt mode reference for filtering.
@n type of : carmaWrap.obj_float
Definition at line 491 of file sutraWrap.py.
|
static |
Tip mode reference for filtering.
@n type of : carmaWrap.obj_float
Definition at line 500 of file sutraWrap.py.
|
static |
Tip/tilt slopes removed after filtering.
@n type of : carmaWrap.obj_float
Definition at line 410 of file sutraWrap.py.
|
static |
Flat frame for calibration.
@n type of : carmaWrap.obj_int
Definition at line 509 of file sutraWrap.py.
|
static |
X positions of the valid ssp.
@n type of : carmaWrap.obj_int
Definition at line 518 of file sutraWrap.py.
|
static |
Y positions of the valid ssp.
@n type of : carmaWrap.obj_int
Definition at line 527 of file sutraWrap.py.
|
static |
|
static |
|
static |
Number of pixels along a side of WFS subap.
@n type of : int
Definition at line 554 of file sutraWrap.py.
|
static |
|
static |
|
static |
Number of ssp across the pupil diameter.
@n type of : int
Definition at line 581 of file sutraWrap.py.
|
static |
|
static |
Scale factor to get slopes in arcsec.
@n type of : float
Definition at line 599 of file sutraWrap.py.
|
static |
|
static |