![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
Functions | |
def | init_config (config) |
def | loop (n) |
def | preloop (n) |
def | compute_btt () |
def | compute_cmatWithBtt (Btt, nfilt) |
def | compute_cmatWithBtt2 (Btt, nfilt) |
def | cov_cor (P, noise, trunc, alias, H, bp, tomo) |
def | save_it (filename) |
Variables | |
c = ch.carmaWrap_context(devices=np.array([6, 7], dtype=np.int32)) | |
string | param_file = "/home/fferreira/compass/trunk/shesha/data/par/par4roket/correlation_study/roket_8m_1layer.py" |
_ _ | |_ ___ ___| |_ ___ | __/ _ \/ __| __/ __| | || __/__ \ |___ \ _____||___/__|___/ More... | |
bool | error_flag = True |
string | filename = param_file.split('/')[-1] |
string | param_path = param_file.split(filename)[0] |
int | nfiltered = 20 |
niters = config.p_loop.niter | |
list | winddirs = [0, 45, 90, 135, 180] |
list | windspeeds = [5., 10., 15., 20.] |
d = float(sys.argv[1]) | |
s = float(sys.argv[2]) | |
g = float(sys.argv[3]) | |
string | savename = "roket_8m_1layer_dir%d_speed%d_g%d.h5" % (d, s, g * 10) |
atm | |
wfs | |
tel | |
dms | |
tar | |
rtc | |
Btt | |
P | |
Dm | |
cmat | |
R = rtc.get_cmat(0) | |
imat = rtc.get_imat(0) | |
RD = np.dot(R, imat).astype(np.float32) | |
tuple | gRD = (np.identity(RD.shape[0]) - config.p_controllers[0].gain * RD).astype(np.float32) |
roket | |
SR | |
SR2 | |
arguments = docopt(__doc__) | |
savefile = arguments["--savefile"] | |
float | gamma = 1.0 |
list | devices = [] |
def script_roket.compute_btt | ( | ) |
| _ ) __ _ __(_)___ | _ \/ _` (-< (_-< |___/_,_/__/_/__/
Definition at line 256 of file misc/correlations/script_roket.py.
def script_roket.compute_cmatWithBtt | ( | Btt, | |
nfilt | |||
) |
Definition at line 307 of file misc/correlations/script_roket.py.
def script_roket.compute_cmatWithBtt2 | ( | Btt, | |
nfilt | |||
) |
Definition at line 325 of file misc/correlations/script_roket.py.
def script_roket.cov_cor | ( | P, | |
noise, | |||
trunc, | |||
alias, | |||
H, | |||
bp, | |||
tomo | |||
) |
/ __|_____ ____ _ _ _(_)__ _ _ _ __ ___ / _|___ __ ___ _ _ _ _ ___| |__ _| |_(_)___ _ _ | (__/ _ \ V / _‘ | ’_| / _‘ | ’ \/ _/ -_) > _|_ _| / _/ _ \ '_| '_/ -_) / _‘ | _| / _ \ ’ \ ______/_/__,_|_| |___,_|_||______| _____| _____/_| |_| ___|___,_|__|____/_||_|
Definition at line 352 of file misc/correlations/script_roket.py.
def script_roket.init_config | ( | config | ) |
Definition at line 31 of file misc/correlations/script_roket.py.
def script_roket.loop | ( | n | ) |
/_\ / _ \ | |___ ___ _ __ / _ \ (_) | | / _ \/ _ \ '_ \ /_/ ____/ |____/___/ .__/ |_|
Performs the main AO loop for n interations. First, initialize buffers for error breakdown computations. Then, at the end of each iteration, just before applying the new DM shape, calls the error_breakdown function.
:param n: (int) : number of iterations
:return: com (np.array((n,nactus))) : full command buffer
noise_com (np.array((n,nactus))) : noise contribution for error breakdown
alias_wfs_com (np.array((n,nactus))) : aliasing estimation in the WFS direction
tomo_com (np.array((n,nactus))) : tomography error estimation
H_com (np.array((n,nactus))) : Filtered modes contribution for error breakdown
trunc_com (np.array((n,nactus))) : Truncature and sampling error of WFS
bp_com (np.array((n,nactus))) : Bandwidth error estimation on target
mod_com (np.array((n,nactus))) : Commanded modes expressed on the actuators
fit (float) : fitting (mean variance of the residual target phase after projection)
SR (float) : final strehl ratio returned by the simulation
Definition at line 139 of file misc/correlations/script_roket.py.
def script_roket.preloop | ( | n | ) |
Definition at line 229 of file misc/correlations/script_roket.py.
def script_roket.save_it | ( | filename | ) |
/ __| __ ___ _____ __ \/ _` \ V / -_) |___/__,_|_/___|
Definition at line 388 of file misc/correlations/script_roket.py.
script_roket.arguments = docopt(__doc__) |
Definition at line 35 of file scripts/script_roket.py.
script_roket.atm |
Definition at line 473 of file misc/correlations/script_roket.py.
script_roket.Btt |
Definition at line 475 of file misc/correlations/script_roket.py.
script_roket.c = ch.carmaWrap_context(devices=np.array([6, 7], dtype=np.int32)) |
(_)_ __ (_) |_ ___ | | '_ | | __/ __| | | | | | | |___ \ |_|_| |_|_|__|___/
Definition at line 28 of file misc/correlations/script_roket.py.
script_roket.cmat |
Definition at line 477 of file misc/correlations/script_roket.py.
script_roket.d = float(sys.argv[1]) |
Definition at line 464 of file misc/correlations/script_roket.py.
list script_roket.devices = [] |
Definition at line 76 of file scripts/script_roket.py.
script_roket.Dm |
Definition at line 477 of file misc/correlations/script_roket.py.
script_roket.dms |
Definition at line 473 of file misc/correlations/script_roket.py.
bool script_roket.error_flag = True |
Definition at line 451 of file misc/correlations/script_roket.py.
string script_roket.filename = param_file.split('/')[-1] |
Definition at line 453 of file misc/correlations/script_roket.py.
script_roket.g = float(sys.argv[3]) |
Definition at line 466 of file misc/correlations/script_roket.py.
int script_roket.gamma = 1.0 |
Definition at line 44 of file scripts/script_roket.py.
tuple script_roket.gRD = (np.identity(RD.shape[0]) - config.p_controllers[0].gain * RD).astype(np.float32) |
Definition at line 482 of file misc/correlations/script_roket.py.
script_roket.imat = rtc.get_imat(0) |
Definition at line 480 of file misc/correlations/script_roket.py.
int script_roket.nfiltered = 20 |
Definition at line 458 of file misc/correlations/script_roket.py.
script_roket.niters = config.p_loop.niter |
Definition at line 459 of file misc/correlations/script_roket.py.
script_roket.P |
Definition at line 475 of file misc/correlations/script_roket.py.
script_roket.param_file = "/home/fferreira/compass/trunk/shesha/data/par/par4roket/correlation_study/roket_8m_1layer.py" |
_ _ | |_ ___ ___| |_ ___ | __/ _ \/ __| __/ __| | || __/__ \ |___ \ _____||___/__|___/
Definition at line 450 of file misc/correlations/script_roket.py.
string script_roket.param_path = param_file.split(filename)[0] |
Definition at line 454 of file misc/correlations/script_roket.py.
script_roket.R = rtc.get_cmat(0) |
Definition at line 479 of file misc/correlations/script_roket.py.
Definition at line 481 of file misc/correlations/script_roket.py.
script_roket.roket |
Definition at line 483 of file misc/correlations/script_roket.py.
script_roket.rtc |
Definition at line 473 of file misc/correlations/script_roket.py.
script_roket.s = float(sys.argv[2]) |
Definition at line 465 of file misc/correlations/script_roket.py.
string script_roket.savefile = arguments["--savefile"] |
Definition at line 40 of file scripts/script_roket.py.
Definition at line 468 of file misc/correlations/script_roket.py.
script_roket.SR |
Definition at line 486 of file misc/correlations/script_roket.py.
script_roket.SR2 |
Definition at line 486 of file misc/correlations/script_roket.py.
script_roket.tar |
Definition at line 473 of file misc/correlations/script_roket.py.
script_roket.tel |
Definition at line 473 of file misc/correlations/script_roket.py.
script_roket.wfs |
Definition at line 473 of file misc/correlations/script_roket.py.
list script_roket.winddirs = [0, 45, 90, 135, 180] |
Definition at line 461 of file misc/correlations/script_roket.py.
list script_roket.windspeeds = [5., 10., 15., 20.] |
Definition at line 462 of file misc/correlations/script_roket.py.