![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
Functions | |
def | compute_Cerr (filename, modal=True, ctype="float", speed=None, H=None, theta=None, r0=None, L0=None) |
Returns the residual error covariance matrix using GROOT from a ROKET file :parameter: filename (string) : full path to the ROKET file modal (bool) : if True (default), Cerr is returned in the Btt modal basis, in the actuator basis if False ctype (string) : "float" or "double" speed (np.ndarray(ndim=1, dtype=np.float32)): (optionnal) wind speed for each layer [m/s] H (np.ndarray(ndim=1, dtype=np.float32)): (optionnal) altitude of each layer [m] theta (np.ndarray(ndim=1, dtype=np.float32)): (optionnal) wind direction for each layer [rad] r0 (float): (optionnal) Fried parameter @ 0.5 µm [m] L0 (np.ndarray(ndim=1, dtype=np.float32)): (optionnal) Outer scale [m]. More... | |
def | compute_Cerr_cpu (filename, modal=True) |
Returns the residual error covariance matrix using CPU version of GROOT from a ROKET file :parameter: filename (string) : full path to the ROKET file modal (bool) : if True (default), Cerr is returned in the Btt modal basis, in the actuator basis if False :return: Cerr (np.ndarray(dim=2, dtype=np.float32)) : residual error covariance matrix. More... | |
def | test_Cerr (filename) |
Compute PSF of aniso and bandwidth from GROOT model and ROKET to compare. More... | |
def | compare_GPU_vs_CPU (filename) |
Compare results of GROOT vs its CPU version in terms of execution time and precision on the PSF renconstruction :parameter: filename (string) : full path to the ROKET file. More... | |
def | compute_Ca_cpu (filename, modal=True) |
Returns the aliasing error covariance matrix using CPU version of GROOT from a ROKET file :parameter: filename (string) : full path to the ROKET file modal (bool) : if True (default), Ca is returned in the Btt modal basis, in the actuator basis if False :return: Ca (np.ndarray(dim=2, dtype=np.float32)) : aliasing error covariance matrix. More... | |
def | compute_Cn_cpu (filename, model="data", modal=True) |
Returns the noise error covariance matrix using CPU version of GROOT from a ROKET file :parameter: filename (string) : full path to the ROKET file modal (bool) : if True (default), Cn is returned in the Btt modal basis, in the actuator basis if False :return: Cn (np.ndarray(dim=2, dtype=np.float32)) : noise error covariance matrix. More... | |
def | compute_OTF_fitting (filename, otftel) |
Modelize the OTF due to the fitting using dphi_highpass. More... | |
def | compute_PSF (filename) |
def | compute_Calias_gpu (filename, slopes_space=False, modal=True, npts=3) |
def | compute_Calias (filename, slopes_space=False, modal=True, npts=3) |
Returns the aliasing slopes covariance matrix using CPU version of GROOT from a ROKET file and a model based on structure function :parameter: filename (string) : full path to the ROKET file slopes_space (bool): (optionnal) if True, return the covariance matrix in the slopes space modal (bool): (optionnal) if True, return the covariance matrix in the modal space :return: Ca (np.ndarray(dim=2, dtype=np.float32)) : aliasing error covariance matrix. More... | |
def | simpson_coeff (n) |
def | compute_Calias_element_XX (xx, yy, fc, d, nsub, tabx, taby, xoff=0, yoff=0) |
Compute the element of the aliasing covariance matrix. More... | |
def | compute_Calias_element_YY (xx, yy, fc, d, nsub, tabx, taby, xoff=0, yoff=0) |
Compute the element of the aliasing covariance matrix. More... | |
def | compute_Calias_element_XY (xx, yy, fc, d, nsub, tabx, taby, xoff=0, yoff=0) |
Compute the element of the aliasing covariance matrix. More... | |
def | compute_Calias_element (xx, yy, fc, d, nsub, tabx, taby, xoff=0, yoff=0) |
Compute the element of the aliasing covariance matrix. More... | |
def | compute_dCmm (filename, ws=None, wd=None, dk=1) |
Returns the derivative slopes covariance matrix using CPU version of GROOT from a ROKET file and a model based on structure function :parameter: filename (string) : full path to the ROKET file ws (np.array[ndim=1, dtype=np.float32]): wind speed per layer [m/s] wd (np.array[ndim=1, dtype=np.float32]): wind direction per layer [deg] dk (int): slopes shift [iterations] :return: dCmm (np.ndarray(dim=2, dtype=np.float32)) : d/dt(slopes)*slopes. More... | |
def | compute_dCmm_element (xx, yy, d, nsub, ws, wd, dt, L0) |
Compute the element of the derivative slopes covariance matrix. More... | |
Variables | |
gpudevices = np.array([0, 1, 2, 3], dtype=np.int32) | |
cxt = carmaWrap_context.get_instance_ngpu(gpudevices.size, gpudevices) | |
def guardians.groot.compare_GPU_vs_CPU | ( | filename | ) |
def guardians.groot.compute_Ca_cpu | ( | filename, | |
modal = True |
|||
) |
Returns the aliasing error covariance matrix using CPU version of GROOT from a ROKET file :parameter: filename (string) : full path to the ROKET file modal (bool) : if True (default), Ca is returned in the Btt modal basis, in the actuator basis if False :return: Ca (np.ndarray(dim=2, dtype=np.float32)) : aliasing error covariance matrix.
Definition at line 307 of file groot.py.
def guardians.groot.compute_Calias | ( | filename, | |
slopes_space = False , |
|||
modal = True , |
|||
npts = 3 |
|||
) |
Returns the aliasing slopes covariance matrix using CPU version of GROOT from a ROKET file and a model based on structure function :parameter: filename (string) : full path to the ROKET file slopes_space (bool): (optionnal) if True, return the covariance matrix in the slopes space modal (bool): (optionnal) if True, return the covariance matrix in the modal space :return: Ca (np.ndarray(dim=2, dtype=np.float32)) : aliasing error covariance matrix.
Definition at line 540 of file groot.py.
def guardians.groot.compute_Calias_element | ( | xx, | |
yy, | |||
fc, | |||
d, | |||
nsub, | |||
tabx, | |||
taby, | |||
xoff = 0 , |
|||
yoff = 0 |
|||
) |
Compute the element of the aliasing covariance matrix.
:parameters: Ca (np.ndarray(ndim=2, dtype=np.float32)): aliasing covariance matrix to fill xx (np.ndarray(ndim=2, dtype=np.float32)): X positions of the WFS subap yy (np.ndarray(ndim=2, dtype=np.float32)): Y positions of the WFS subap fc (float): cut-off frequency for structure function d (float): subap diameter nsub (int): number of subap tabx (np.ndarray(ndim=1, dtype=np.float32)): X tabulation for dphi taby (np.ndarray(ndim=1, dtype=np.float32)): Y tabulation for dphi xoff (float) : (optionnal) offset to apply on the WFS xpos (units of d) yoff (float) : (optionnal) offset to apply on the WFS ypos (units of d)
Definition at line 750 of file groot.py.
def guardians.groot.compute_Calias_element_XX | ( | xx, | |
yy, | |||
fc, | |||
d, | |||
nsub, | |||
tabx, | |||
taby, | |||
xoff = 0 , |
|||
yoff = 0 |
|||
) |
Compute the element of the aliasing covariance matrix.
:parameters: Ca (np.ndarray(ndim=2, dtype=np.float32)): aliasing covariance matrix to fill xx (np.ndarray(ndim=2, dtype=np.float32)): X positions of the WFS subap yy (np.ndarray(ndim=2, dtype=np.float32)): Y positions of the WFS subap fc (float): cut-off frequency for structure function d (float): subap diameter nsub (int): number of subap tabx (np.ndarray(ndim=1, dtype=np.float32)): X tabulation for dphi taby (np.ndarray(ndim=1, dtype=np.float32)): Y tabulation for dphi xoff (float) : (optionnal) offset to apply on the WFS xpos (units of d) yoff (float) : (optionnal) offset to apply on the WFS ypos (units of d)
Definition at line 646 of file groot.py.
def guardians.groot.compute_Calias_element_XY | ( | xx, | |
yy, | |||
fc, | |||
d, | |||
nsub, | |||
tabx, | |||
taby, | |||
xoff = 0 , |
|||
yoff = 0 |
|||
) |
Compute the element of the aliasing covariance matrix.
:parameters: Ca (np.ndarray(ndim=2, dtype=np.float32)): aliasing covariance matrix to fill xx (np.ndarray(ndim=2, dtype=np.float32)): X positions of the WFS subap yy (np.ndarray(ndim=2, dtype=np.float32)): Y positions of the WFS subap fc (float): cut-off frequency for struture function d (float): subap diameter nsub (int): number of subap tabx (np.ndarray(ndim=1, dtype=np.float32)): X tabulation for dphi taby (np.ndarray(ndim=1, dtype=np.float32)): Y tabulation for dphi xoff (float) : (optionnal) offset to apply on the WFS xpos (units of d) yoff (float) : (optionnal) offset to apply on the WFS ypos (units of d)
Definition at line 716 of file groot.py.
def guardians.groot.compute_Calias_element_YY | ( | xx, | |
yy, | |||
fc, | |||
d, | |||
nsub, | |||
tabx, | |||
taby, | |||
xoff = 0 , |
|||
yoff = 0 |
|||
) |
Compute the element of the aliasing covariance matrix.
:parameters: Ca (np.ndarray(ndim=2, dtype=np.float32)): aliasing covariance matrix to fill xx (np.ndarray(ndim=2, dtype=np.float32)): X positions of the WFS subap yy (np.ndarray(ndim=2, dtype=np.float32)): Y positions of the WFS subap fc (float): cut-off frequency for structure function d (float): subap diameter nsub (int): number of subap tabx (np.ndarray(ndim=1, dtype=np.float32)): X tabulation for dphi taby (np.ndarray(ndim=1, dtype=np.float32)): Y tabulation for dphi xoff (float) : (optionnal) offset to apply on the WFS xpos (units of d) yoff (float) : (optionnal) offset to apply on the WFS ypos (units of d)
Definition at line 681 of file groot.py.
def guardians.groot.compute_Calias_gpu | ( | filename, | |
slopes_space = False , |
|||
modal = True , |
|||
npts = 3 |
|||
) |
def guardians.groot.compute_Cerr | ( | filename, | |
modal = True , |
|||
ctype = "float" , |
|||
speed = None , |
|||
H = None , |
|||
theta = None , |
|||
r0 = None , |
|||
L0 = None |
|||
) |
Returns the residual error covariance matrix using GROOT from a ROKET file :parameter: filename (string) : full path to the ROKET file modal (bool) : if True (default), Cerr is returned in the Btt modal basis, in the actuator basis if False ctype (string) : "float" or "double" speed (np.ndarray(ndim=1, dtype=np.float32)): (optionnal) wind speed for each layer [m/s] H (np.ndarray(ndim=1, dtype=np.float32)): (optionnal) altitude of each layer [m] theta (np.ndarray(ndim=1, dtype=np.float32)): (optionnal) wind direction for each layer [rad] r0 (float): (optionnal) Fried parameter @ 0.5 µm [m] L0 (np.ndarray(ndim=1, dtype=np.float32)): (optionnal) Outer scale [m].
:return: Cerr (np.ndarray(dim=2, dtype=np.float32)) : residual error covariance matrix
Definition at line 37 of file groot.py.
def guardians.groot.compute_Cerr_cpu | ( | filename, | |
modal = True |
|||
) |
Returns the residual error covariance matrix using CPU version of GROOT from a ROKET file :parameter: filename (string) : full path to the ROKET file modal (bool) : if True (default), Cerr is returned in the Btt modal basis, in the actuator basis if False :return: Cerr (np.ndarray(dim=2, dtype=np.float32)) : residual error covariance matrix.
Definition at line 117 of file groot.py.
def guardians.groot.compute_Cn_cpu | ( | filename, | |
model = "data" , |
|||
modal = True |
|||
) |
Returns the noise error covariance matrix using CPU version of GROOT from a ROKET file :parameter: filename (string) : full path to the ROKET file modal (bool) : if True (default), Cn is returned in the Btt modal basis, in the actuator basis if False :return: Cn (np.ndarray(dim=2, dtype=np.float32)) : noise error covariance matrix.
Definition at line 364 of file groot.py.
def guardians.groot.compute_dCmm | ( | filename, | |
ws = None , |
|||
wd = None , |
|||
dk = 1 |
|||
) |
Returns the derivative slopes covariance matrix using CPU version of GROOT from a ROKET file and a model based on structure function :parameter: filename (string) : full path to the ROKET file ws (np.array[ndim=1, dtype=np.float32]): wind speed per layer [m/s] wd (np.array[ndim=1, dtype=np.float32]): wind direction per layer [deg] dk (int): slopes shift [iterations] :return: dCmm (np.ndarray(dim=2, dtype=np.float32)) : d/dt(slopes)*slopes.
Definition at line 800 of file groot.py.
def guardians.groot.compute_dCmm_element | ( | xx, | |
yy, | |||
d, | |||
nsub, | |||
ws, | |||
wd, | |||
dt, | |||
L0 | |||
) |
Compute the element of the derivative slopes covariance matrix.
:parameters: xx (np.ndarray(ndim=2, dtype=np.float32)): X positions of the WFS subap yy (np.ndarray(ndim=2, dtype=np.float32)): Y positions of the WFS subap d (float): subap diameter nsub (int): number of subap ws (float): wind speed per layer [m/s] wd (float): wind direction per layer [deg] dt (float): iteration time [s] L0 (float): outer scale [m]
Definition at line 853 of file groot.py.
def guardians.groot.compute_OTF_fitting | ( | filename, | |
otftel | |||
) |
def guardians.groot.compute_PSF | ( | filename | ) |
def guardians.groot.simpson_coeff | ( | n | ) |
def guardians.groot.test_Cerr | ( | filename | ) |
guardians.groot.cxt = carmaWrap_context.get_instance_ngpu(gpudevices.size, gpudevices) |