39 from .
import config_setter_utils
as csu
49 """ telescope diameter (in meters)."""
51 """ central obstruction ratio."""
53 """ EELT aperture type: "Nominal", "BP1", "BP3", "BP5" (for back-up plan with 1, 3, or 5 missing annulus)."""
54 self.
__type_ap__type_ap = const.ApertureType.GENERIC
55 """ secondary supports ratio."""
57 """ secondary supports type: "four" or "six"."""
59 """ rotation angle of pupil."""
61 """ number of missing segments for EELT pupil (max is 20)."""
63 """ Gap between segments [meters]"""
65 """ std of reflectivity errors for EELT segments (fraction)."""
67 """ std of piston errors for EELT segments """
69 """ std of tip-tilt errors for EELT segments. """
71 """ Vector for define segments numbers need. """
75 """ Get the telescope diameter
77 :return: (float) : telescope diameter (in meters)
82 """ Set the telescope diameter
84 :param d: (float) : telescope diameter (in meters)
86 self.
__diam__diam = csu.enforce_float(d)
88 diam = property(get_diam, set_diam)
91 """ Get the central obstruction ratio
93 :return: (float) : central obstruction ratio
98 """ Set the central obstruction ratio
100 :param c: (float) : central obstruction ratio
102 self.
__cobs__cobs = csu.enforce_float(c)
104 cobs = property(get_cobs, set_cobs)
107 """ Get the EELT aperture type
109 :return: (str) : EELT aperture type
114 """ Set the EELT aperture type
116 :param t: (str) : EELT aperture type
118 self.
__type_ap__type_ap = const.check_enum(const.ApertureType, t)
120 type_ap = property(get_type_ap, set_type_ap)
123 """ Get the secondary supports ratio
125 :return: (float) : secondary supports ratio
130 """ Set the secondary supports ratio
132 :param spider: (float) : secondary supports ratio
134 self.
__t_spiders__t_spiders = csu.enforce_float(spider)
136 t_spiders = property(get_t_spiders, set_t_spiders)
139 """ Get the secondary supports type
141 :return: (str) : secondary supports type
146 """ Set the secondary supports type
148 :param spider: (str) : secondary supports type
150 self.
__spiders_type__spiders_type = const.check_enum(const.SpiderType, spider)
152 spiders_type = property(get_spiders_type, set_spiders_type)
155 """ Get the rotation angle of pupil
157 :return: (float) : rotation angle of pupil
162 """ Set the rotation angle of pupil
164 :param p: (float) : rotation angle of pupil
166 self.
__pupangle__pupangle = csu.enforce_float(p)
168 pupangle = property(get_pupangle, set_pupangle)
171 """ Get the number of missing segments for EELT pupil
173 :return: (long) : number of missing segments for EELT pupil (max is 20)
178 """ Set the number of missing segments for EELT pupil
180 :param nb: (long) : number of missing segments for EELT pupil (max is 20)
184 nbrmissing = property(get_nbrmissing, set_nbrmissing)
187 """ Get the Gap between segments
189 :return: (float) : Gap between segments (meters)
191 return self.
__gap__gap
194 """ Set the Gap between segments
196 :param gap: (float) : Gap between segments (meters)
198 self.
__gap__gap = csu.enforce_float(gap)
200 gap = property(get_gap, set_gap)
203 """ Get the std of reflectivity errors for EELT segments
205 :return: (float) : std of reflectivity errors for EELT segments (fraction)
210 """ Set the std of reflectivity errors for EELT segments
212 :param ref: (float) : std of reflectivity errors for EELT segments (fraction)
214 self.
__referr__referr = csu.enforce_float(ref)
216 referr = property(get_referr, set_referr)
219 """ Get the std of piston errors for EELT segments
221 :return: (float) : std of piston errors for EELT segments
226 """ Set the std of piston errors for EELT segments
228 :param piston: (float) : std of piston errors for EELT segments
230 self.
__std_piston__std_piston = csu.enforce_float(piston)
232 std_piston = property(get_std_piston, set_std_piston)
235 """ Get the std of tip-tilt errors for EELT segments
237 :return: (float) : std of tip-tilt errors for EELT segments
242 """ Set the std of tip-tilt errors for EELT segments
244 :param tt: (float) : std of tip-tilt errors for EELT segments
246 self.
__std_tt__std_tt = csu.enforce_float(tt)
248 std_tt = property(get_std_tt, set_std_tt)
251 """ Get the segment number for construct ELT pupil"
253 :return: (list of int32) : segment numbers
258 """ Set the segment number for construct ELT pupil"
260 :param vect: (list of int32) : segment numbers
262 self.
__vect_seg__vect_seg = csu.enforce_array(vect, len(vect), dtype=np.int32,
265 vect_seg = property(get_vect_seg, set_vect_seg)
P-Class (parametres) Param_tel.
def set_referr(self, ref)
Set the std of reflectivity errors for EELT segments.
def __init__(self)
telescope diameter (in meters).
def set_std_piston(self, piston)
Set the std of piston errors for EELT segments.
def get_gap(self)
Get the Gap between segments.
def get_std_piston(self)
Get the std of piston errors for EELT segments.
def set_gap(self, gap)
Set the Gap between segments.
def set_vect_seg(self, vect)
Set the segment number for construct ELT pupil".
def get_t_spiders(self)
Get the secondary supports ratio.
def get_std_tt(self)
Get the std of tip-tilt errors for EELT segments.
def get_nbrmissing(self)
Get the number of missing segments for EELT pupil.
def get_spiders_type(self)
Get the secondary supports type.
def set_type_ap(self, t)
Set the EELT aperture type.
def get_type_ap(self)
Get the EELT aperture type.
def get_cobs(self)
Get the central obstruction ratio.
def get_diam(self)
Get the telescope diameter.
def set_pupangle(self, p)
Set the rotation angle of pupil.
def set_std_tt(self, tt)
Set the std of tip-tilt errors for EELT segments.
def get_referr(self)
Get the std of reflectivity errors for EELT segments.
def set_spiders_type(self, spider)
Set the secondary supports type.
def get_vect_seg(self)
Get the segment number for construct ELT pupil".
def get_pupangle(self)
Get the rotation angle of pupil.
def set_diam(self, d)
Set the telescope diameter.
def set_t_spiders(self, spider)
Set the secondary supports ratio.
def set_nbrmissing(self, nb)
Set the number of missing segments for EELT pupil.
def set_cobs(self, c)
Set the central obstruction ratio.
Numerical constants for shesha and config enumerations for safe-typing.