COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
shesha.ao.wfs Namespace Reference

On the fly modification of the WFS. More...

Functions

def comp_new_pyr_ampl (int nwfs, float ampli, list p_wfss, conf.Param_tel p_tel, int npts_force=None)
 Set the pyramid modulation amplitude. More...
 
def noise_cov (int nw, conf.Param_wfs p_wfs, conf.Param_atmos p_atmos, conf.Param_tel p_tel)
 Compute the diagonal of the noise covariance matrix for a SH WFS (arcsec^2) Photon (pi^2/2)*(1/Nphotons)*(d/r0)^2 / (2*pi*d/lambda)^2 Electronic (pi^2/3)*(wfs.noise^2/N^2photons)*wfs.npix^2*(wfs.npix*wfs.pixsize*d/lambda)^2 / (2*pi*d/lambda)^2. More...
 
def comp_new_fstop (Sensors wfs, int n, conf.Param_wfs p_wfs, float fssize, bytes fstop)
 Compute a new field stop for pyrhr WFS. More...
 

Detailed Description

On the fly modification of the WFS.

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.4.4
Date
2022/01/24

This file is part of COMPASS https://anr-compass.github.io/compass/

Copyright (C) 2011-2023 COMPASS Team https://github.com/ANR-COMPASS All rights reserved. Distributed under GNU - LGPL

COMPASS is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

COMPASS: End-to-end AO simulation tool using GPU acceleration The COMPASS platform was designed to meet the need of high-performance for the simulation of AO systems.

The final product includes a software package for simulating all the critical subcomponents of AO, particularly in the context of the ELT and a real-time core based on several control approaches, with performances consistent with its integration into an instrument. Taking advantage of the specific hardware architecture of the GPU, the COMPASS tool allows to achieve adequate execution speeds to conduct large simulation campaigns called to the ELT.

The COMPASS platform can be used to carry a wide variety of simulations to both testspecific components of AO of the E-ELT (such as wavefront analysis device with a pyramid or elongated Laser star), and various systems configurations such as multi-conjugate AO.

COMPASS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with COMPASS. If not, see https://www.gnu.org/licenses/lgpl-3.0.txt.

Function Documentation

◆ comp_new_fstop()

def shesha.ao.wfs.comp_new_fstop ( Sensors  wfs,
int  n,
conf.Param_wfs  p_wfs,
float  fssize,
bytes  fstop 
)

Compute a new field stop for pyrhr WFS.

Parameters
n(int) : WFS index
wfs(Param_wfs) : WFS parameters
fssize(float) : field stop size [arcsec]
fstop(string) : "square" or "round" (field stop shape)

Definition at line 149 of file ao/wfs.py.

◆ comp_new_pyr_ampl()

def shesha.ao.wfs.comp_new_pyr_ampl ( int  nwfs,
float  ampli,
list  p_wfss,
conf.Param_tel  p_tel,
int   npts_force = None 
)

Set the pyramid modulation amplitude.

Parameters
nwfs(int): WFS index
ampli(float) : new amplitude in units of lambda/D
p_wfss(list of Param_wfs) : list of wfs parameters
p_tel(Param_tel) : Telescope parameters

Definition at line 60 of file ao/wfs.py.

◆ noise_cov()

def shesha.ao.wfs.noise_cov ( int  nw,
conf.Param_wfs  p_wfs,
conf.Param_atmos  p_atmos,
conf.Param_tel  p_tel 
)

Compute the diagonal of the noise covariance matrix for a SH WFS (arcsec^2) Photon (pi^2/2)*(1/Nphotons)*(d/r0)^2 / (2*pi*d/lambda)^2 Electronic (pi^2/3)*(wfs.noise^2/N^2photons)*wfs.npix^2*(wfs.npix*wfs.pixsize*d/lambda)^2 / (2*pi*d/lambda)^2.

Parameters
nwwfs number
p_wfs(Param_wfs) : wfs settings
p_atmos(Param_atmos) : atmos settings
p_tel(Param_tel) : telescope settings

:return:

Parameters
cov(np.ndarray(ndim=1,dtype=np.float64)) : noise covariance diagonal

Definition at line 107 of file ao/wfs.py.