![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
Basic utilities function. More...
Functions | |
def | rebin (a, shape) |
TODO docstring. More... | |
def | fft_goodsize (s) |
find best size for a fft from size s More... | |
def | bin2d (data_in, binfact) |
def | pad_array (A, N) |
TODO docstring. More... | |
def | dist (dim, xc=-1, yc=-1) |
TODO docstring. More... | |
def | makegaussian (size, fwhm, xc=-1, yc=-1, norm=0) |
def | load_config_from_file (str filename_path) |
Load the parameters from the parameters file. More... | |
def | load_config_from_module (str filepath) |
Load the parameters from the parameters module. More... | |
def | generate_square (float radius, float density=1.) |
Generate modulation points positions following a square pattern. More... | |
def | generate_circle (float radius, float density=1.) |
Generate modulation points positions following a circular pattern s. More... | |
np.ndarray | first_non_zero (np.ndarray array, int axis, int invalid_val=-1) |
Find the first non zero element of an array. More... | |
Basic utilities function.
This file is part of COMPASS https://anr-compass.github.io/compass/
Copyright (C) 2011-2019 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.utilities.bin2d | ( | data_in, | |
binfact | |||
) |
Definition at line 80 of file utilities.py.
def shesha.util.utilities.dist | ( | dim, | |
xc = -1 , |
|||
yc = -1 |
|||
) |
TODO docstring.
Definition at line 124 of file utilities.py.
def shesha.util.utilities.fft_goodsize | ( | s | ) |
find best size for a fft from size s
:parameters:
s (int) size
Definition at line 60 of file utilities.py.
np.ndarray shesha.util.utilities.first_non_zero | ( | np.ndarray | array, |
int | axis, | ||
int | invalid_val = -1 |
||
) |
Find the first non zero element of an array.
Definition at line 355 of file utilities.py.
def shesha.util.utilities.generate_circle | ( | float | radius, |
float | density = 1. |
||
) |
Generate modulation points positions following a circular pattern s.
Definition at line 263 of file utilities.py.
def shesha.util.utilities.generate_square | ( | float | radius, |
float | density = 1. |
||
) |
Generate modulation points positions following a square pattern.
Definition at line 244 of file utilities.py.
def shesha.util.utilities.load_config_from_file | ( | str | filename_path | ) |
Load the parameters from the parameters file.
Definition at line 168 of file utilities.py.
def shesha.util.utilities.load_config_from_module | ( | str | filepath | ) |
Load the parameters from the parameters module.
Definition at line 196 of file utilities.py.
def shesha.util.utilities.makegaussian | ( | size, | |
fwhm, | |||
xc = -1 , |
|||
yc = -1 , |
|||
norm = 0 |
|||
) |
def shesha.util.utilities.pad_array | ( | A, | |
N | |||
) |
TODO docstring.
Definition at line 110 of file utilities.py.
def shesha.util.utilities.rebin | ( | a, | |
shape | |||
) |
TODO docstring.
Definition at line 48 of file utilities.py.