![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
Imported from CANARY. More...
Functions | |
def | clr (*figs) |
THE Fab function. More... | |
def | system (cmd, output=False) |
Execute the external command. More... | |
def | pli (data, color='gist_earth', cmin=9998, cmax=9998, win=1, origin=None, aspect='equal') |
plots the transpose of the data More... | |
def | binning (w, footprint) |
def | minmax (tab) |
def | plg (data, x="", win=1, xlog=0, ylog=0, color="black") |
def | zcen (data) |
def | getValidSubapArray (nssp, rext, rint, return2d=False) |
def | plpyr (slopesvector, validArray) |
def | plsh (slopesvector, nssp, validint, sparta=False, invertxy=False, returnquiver=False) |
<slopesvector> is the input vector of slopes <nssp> is the number of subapertures in the diameter of the pupil <validint> is the normalized diameter of central obscuration (between 0 and 1.00) <sparta> when==1, slopes are ordered xyxyxyxy... More... | |
def | pl3d (im) |
def | FFThz (signal, fe, freq=0) |
PSD = FFThz( signal, fe ) OU f = FFThz( 1024, fe, freq=1 ) On the first form, returns the power spectral density of signal. More... | |
def | computePSD (zerall, fe, izerNum, wfsNum) |
def | countExample (seconds) |
def | plotSubapRectangles (pup, isvalid, istart, jstart) |
Imported from CANARY.
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.
def shesha.util.tools.clr | ( | * | figs | ) |
def shesha.util.tools.computePSD | ( | zerall, | |
fe, | |||
izerNum, | |||
wfsNum | |||
) |
def shesha.util.tools.FFThz | ( | signal, | |
fe, | |||
freq = 0 |
|||
) |
PSD = FFThz( signal, fe ) OU f = FFThz( 1024, fe, freq=1 ) On the first form, returns the power spectral density of signal.
If signal has units 'u', the PSD has units 'u^2/Hz'. The frequency axis can be get by using the keyword freq=1.
Definition at line 349 of file tools.py.
def shesha.util.tools.getValidSubapArray | ( | nssp, | |
rext, | |||
rint, | |||
return2d = False |
|||
) |
def shesha.util.tools.pl3d | ( | im | ) |
def shesha.util.tools.plg | ( | data, | |
x = "" , |
|||
win = 1 , |
|||
xlog = 0 , |
|||
ylog = 0 , |
|||
color = "black" |
|||
) |
def shesha.util.tools.pli | ( | data, | |
color = 'gist_earth' , |
|||
cmin = 9998 , |
|||
cmax = 9998 , |
|||
win = 1 , |
|||
origin = None , |
|||
aspect = 'equal' |
|||
) |
plots the transpose of the data
color maps keywords can be found in http://wiki.scipy.org/Cookbook/Matplotlib/Show_colormaps
def shesha.util.tools.plotSubapRectangles | ( | pup, | |
isvalid, | |||
istart, | |||
jstart | |||
) |
def shesha.util.tools.plpyr | ( | slopesvector, | |
validArray | |||
) |
def shesha.util.tools.plsh | ( | slopesvector, | |
nssp, | |||
validint, | |||
sparta = False , |
|||
invertxy = False , |
|||
returnquiver = False |
|||
) |
<slopesvector> is the input vector of slopes <nssp> is the number of subapertures in the diameter of the pupil <validint> is the normalized diameter of central obscuration (between 0 and 1.00) <sparta> when==1, slopes are ordered xyxyxyxy...
when==0, slopes are xxxxxxyyyyyyy <xy> when==1, swap x and y. Does nothing special when xy==0.
The routine plots a field vector of subaperture gradients defined in vector <slopesvector>. The routine automatically adjusts/finds what are the valid subapertures for plotting, depending on the number of elements in <slopesvector>. Only the devalidated subapertures inside the central obscuration cannot be known, that’s why <validint> has to be passed in the argument list.
def shesha.util.tools.system | ( | cmd, | |
output = False |
|||
) |