![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
Functions | |
def | used_actu (xpos, ypos, Np=-1) |
return the indices of the used actuators More... | |
def | get_idx (p_dm, xpos=None, ypos=None) |
return a correspondance between the covariance matrix indices and the covariance map indices More... | |
def | get_abs2fi (sup, dm=0) |
def | OTF_telescope (sup) |
otf = OTF_telescope(fourier) More... | |
def | get_subaps (sup, WFS="all") |
def | autocorrelation (a) |
computes the autocorrelation so that More... | |
def | funcInflu (x, y, x0) |
def | generate_files (sup, path=".", singleFile=False, dm_tt=False, WFS="all") |
write inputs parameters More... | |
def | toStr (a="") |
def | write_sysParam (sim, path=".", WFS="all") |
def | write_atmParam (sim, path=".") |
def | write_metaDx (metaDx, nTS=0, nmeas=None, trans=True, path=".") |
Write command matrices. More... | |
def shesha.util.write_sysParam.autocorrelation | ( | a | ) |
computes the autocorrelation so that
max(aa) == sum(a^2)
:parameters: a (np.ndarray[ndim=2, dtype=np.float32]): matrix to compute the autocorrelation on
Definition at line 151 of file write_sysParam.py.
def shesha.util.write_sysParam.funcInflu | ( | x, | |
y, | |||
x0 | |||
) |
Definition at line 166 of file write_sysParam.py.
def shesha.util.write_sysParam.generate_files | ( | sup, | |
path = "." , |
|||
singleFile = False , |
|||
dm_tt = False , |
|||
WFS = "all" |
|||
) |
write inputs parameters
sys contains the system parameters idx.fits : otftel.fits : abs2fi.fits : subaps number and position of the subapertures
:parameters: sup (CompassSupervisor): current supervisor
path (str): (optional), default './' path where the files are written
singleFile (bool): (optional), default=False write a single fits File
Definition at line 198 of file write_sysParam.py.
def shesha.util.write_sysParam.get_abs2fi | ( | sup, | |
dm = 0 |
|||
) |
def shesha.util.write_sysParam.get_idx | ( | p_dm, | |
xpos = None , |
|||
ypos = None |
|||
) |
return a correspondance between the covariance matrix indices and the covariance map indices
:parameters: p_dm (Param_dm): dm settings
xpos (np.ndarray[ndim=1, dtype=np.int32]): (optional) actuator position in x
ypos (np.ndarray[ndim=1, dtype=np.int32]): (optional) actuator position in y
Definition at line 49 of file write_sysParam.py.
def shesha.util.write_sysParam.get_subaps | ( | sup, | |
WFS = "all" |
|||
) |
Definition at line 120 of file write_sysParam.py.
def shesha.util.write_sysParam.OTF_telescope | ( | sup | ) |
otf = OTF_telescope(fourier)
Computes the OTF of the telescope, so that
fft(OTF_telescope()).re
produces a PSF normalized with max(psf)=SR=1.0
Definition at line 92 of file write_sysParam.py.
def shesha.util.write_sysParam.toStr | ( | a = "" | ) |
def shesha.util.write_sysParam.used_actu | ( | xpos, | |
ypos, | |||
Np = -1 |
|||
) |
return the indices of the used actuators
:parameters: xpos (np.ndarray[ndim=1, dtype=np.int32]): (optional) actuator position in x
ypos (np.ndarray[ndim=1, dtype=np.int32]): (optional) actuator position in y
Np (int): (optional) number of actuators along the diameter
Definition at line 23 of file write_sysParam.py.
def shesha.util.write_sysParam.write_atmParam | ( | sim, | |
path = "." |
|||
) |
Definition at line 400 of file write_sysParam.py.
def shesha.util.write_sysParam.write_metaDx | ( | metaDx, | |
nTS = 0 , |
|||
nmeas = None , |
|||
trans = True , |
|||
path = "." |
|||
) |
Write command matrices.
split the meta command matrix
:parameters: metaDx (np.ndarray[ndim=2, dtype=np.float32]): "meta" command matrix
nTS (int): (optional), default=0. Number of truth sensors, command matrices are written as Di.fits where 'i' belongs to [0,nTS[ , if nTS<1 write the whole matrix as Dx.fits
nmeas (np.ndarray[ndim=1, dtype=np.int32]): (optional) if set, must contains the number of measurements for each TS, the matrix is split according to theses numbers. By default, the matrix is split evenly between the nTS truth sensors
trans (bool): (optional), default=True. Transpose the matrix if true
path (str): (optional), default './' path where the files are written
Definition at line 431 of file write_sysParam.py.
def shesha.util.write_sysParam.write_sysParam | ( | sim, | |
path = "." , |
|||
WFS = "all" |
|||
) |
Definition at line 265 of file write_sysParam.py.