39 from .
import config_setter_utils
as csu
50 """ Type of coronograph """
53 """ ASTERIX parameter file path """
55 """ ASTERIX data directory path """
58 """ Central wavelength in the coronagraph """
60 """ Spectral bandwidth """
62 """ Number of simulated wavelength in the spectral bandwidth """
64 """ Array of simulated wavelengths """
67 """ Apodizer pupil """
69 """ Apodizer string name or user path """
72 """ Focal plane mask complex amplitudes """
74 """ Focal plane mask string name or user path """
76 """ Size of lambda / D in the fpm plane, in pixel unit """
78 """ Focal plane mask radius in lamda / D unit, for a classical Lyot fpm only """
80 """ Size of the focal plane mask in pixel """
82 """ Flag for using Babinet's trick """
87 """ Lyot stop string name or user path """
90 """ Size of the science image in pixel """
92 """ Size of lambda / D in the image plane, in pixel unit """
96 """ Get the coronograph type
98 :return: (str) : coronograph type
103 """ Set the coronograph type
106 t: (str) : coronograph type
108 self.
__type__type = scons.check_enum(scons.CoronoType, t)
110 _type = property(get_type, set_type)
113 """ Get the path of asterix parfile
115 :return: (str) : asterix parfile path
120 """ set the path of asterix parfile
122 :f: (str) : asterix parfile path
126 _asterix_parfile = property(get_asterix_parfile, set_asterix_parfile)
129 """ Get the path of asterix datadir
131 :return: (str) : asterix datadir path
136 """ set the path of asterix datadir
138 :f: (str) : asterix datadir path
142 _asterix_datadir = property(get_asterix_datadir, set_asterix_datadir)
145 """ Get the central wavelength in the coronagraph
147 :return: (float) : central wavelength
152 """ Set the central wavelength in the coronagraph
154 :param w: central wavelength
158 _wavelength_0 = property(get_wavelength_0, set_wavelength_0)
161 """ Get the spectral bandwith
163 :return: (float) : bandwidth
168 """ Set the spectral bandwidth
170 :param w: (float) : spectral bandwidth
174 _delta_wav = property(get_delta_wav, set_delta_wav)
177 """ Get the number of simulated wavelength in the spectral bandwidth
179 :return: (int) : number of wavelengths
184 """ Set the number of simulated wavelength in the spectral bandwidth
186 :param n: (int) : number of wavelengths
188 self.
__nb_wav__nb_wav = csu.enforce_int(n)
190 _nb_wav = property(get_nb_wav, set_nb_wav)
193 """ Get the wavelengths array
195 :return: (np.ndarray) : wavelengths array
200 """ Set the wavelengths array
202 :param w: (np.ndarray) : wavelengths array
206 _wav_vec = property(get_wav_vec, set_wav_vec)
209 """ Get the apodizer pupil
211 :return: (np.ndarray) : apodizer
216 """ Set the apodizer pupil
218 :param apod: (np.ndarray) : apodizer
222 _apodizer = property(get_apodizer, set_apodizer)
225 """ Get the apodizer keyword or user path
227 :return: (str) : apodizer keyword or path
232 """ Set the apodizer keyword or user path
234 :param apod: (str) : apodizer keyword or path
238 _apodizer_name = property(get_apodizer_name, set_apodizer_name)
241 """ Get the focal plane mask complex amplitudes
243 :return: (list of np.ndarray) : focal plane mask
248 """ Set the focal plane complex amplitudes
250 :param fpm: (list of np.ndarray) : focal plane mask
254 _focal_plane_mask = property(get_focal_plane_mask, set_focal_plane_mask)
257 """ Get the focal plane mask keyword or user path
259 :return: (str) : focal plane mask keyword or path
264 """ Set the focal plane mask keyword or user path
266 :param fpm: (str) : focal plane mask keyword or path
270 _focal_plane_mask_name = property(get_focal_plane_mask_name, set_focal_plane_mask_name)
273 """ Get the sampling in the focal plane mask
274 sampling = size of lambda / D in pixel units
276 :return: (float) : focal plane mask sampling
281 """ Set the sampling in the focal plane mask
282 sampling = size of lambda / D in pixel units
284 :param sp: (float) : focal plane mask sampling
288 _fpm_sampling = property(get_fpm_sampling, set_fpm_sampling)
291 """ Get the radius of the classical Lyot focal plane mask
294 :return: (float) : classical Lyot fpm radius
299 """ Set the radius of the classical Lyot focal plane mask
302 :param r: (float) : classical Lyot fpm radius
306 _lyot_fpm_radius = property(get_lyot_fpm_radius, set_lyot_fpm_radius)
309 """ Get the size of the focal plane mask support in pixel units
311 :return: (int) : fpm support size in pixel
316 """ Set the size of the focal plane mask support in pixel units
318 :param n: (int) : fpm support size in pixel
320 self.
__dim_fpm__dim_fpm = csu.enforce_int(n)
322 _dim_fpm = property(get_dim_fpm, set_dim_fpm)
325 """ Get the Babinet's trick flag
327 :return: (bool) : Babinet's trick flag
332 """ Set the Babinet's trick flag
334 :param b: (bool) : Babinet's trick flag
338 _babinet_trick = property(get_babinet_trick, set_babinet_trick)
341 """ Get the Lyot stop pupil
343 :return: (np.ndarray) : Lyot stop pupil
348 """ Set the Lyot stop pupil
350 :param ls: (np.ndarray) : Lyot stop pupil
354 _lyot_stop = property(get_lyot_stop, set_lyot_stop)
357 """ Get the Lyot stop keyword or user path
359 :return: (str) : Lyot stop keyword or path
364 """ Set the Lyot stop keyword or user path
366 :param ls: (str) : Lyot stop keyword or path
370 _lyot_stop_name = property(get_lyot_stop_name, set_lyot_stop_name)
373 """ Get the size of the science image in pixel
375 :return: (int) : image size in pixel
380 """ Set the size of the science image in pixel
382 :param n: (int) : image size in pixel
386 _dim_image = property(get_dim_image, set_dim_image)
389 """ Get the sampling in the image
390 sampling = size of lambda / D in pixel units
392 :return: (float) : image sampling
397 """ Set the sampling in the image
398 sampling = size of lambda / D in pixel units
400 :param sp: (float) : image sampling
404 _image_sampling = property(get_image_sampling, set_image_sampling)
P-Class (parametres) Param_corono.
def get_delta_wav(self)
Get the spectral bandwith.
def set_type(self, t)
Set the coronograph type.
def set_apodizer_name(self, apod)
Set the apodizer keyword or user path.
def set_lyot_stop(self, ls)
Set the Lyot stop pupil.
def set_delta_wav(self, w)
Set the spectral bandwidth.
def set_apodizer(self, apod)
Set the apodizer pupil.
def set_dim_image(self, n)
Set the size of the science image in pixel.
def set_lyot_stop_name(self, ls)
Set the Lyot stop keyword or user path.
def get_lyot_stop_name(self)
Get the Lyot stop keyword or user path.
def set_asterix_datadir(self, f)
set the path of asterix datadir
def set_focal_plane_mask(self, fpm)
Set the focal plane complex amplitudes.
def get_babinet_trick(self)
Get the Babinet's trick flag.
def set_wav_vec(self, w)
Set the wavelengths array.
def get_lyot_stop(self)
Get the Lyot stop pupil.
def get_focal_plane_mask(self)
Get the focal plane mask complex amplitudes.
def get_nb_wav(self)
Get the number of simulated wavelength in the spectral bandwidth.
def get_asterix_parfile(self)
Get the path of asterix parfile.
def set_fpm_sampling(self, sp)
Set the sampling in the focal plane mask sampling = size of lambda / D in pixel units.
def get_fpm_sampling(self)
Get the sampling in the focal plane mask sampling = size of lambda / D in pixel units.
def get_dim_image(self)
Get the size of the science image in pixel.
def set_focal_plane_mask_name(self, fpm)
Set the focal plane mask keyword or user path.
def get_asterix_datadir(self)
Get the path of asterix datadir.
def get_focal_plane_mask_name(self)
Get the focal plane mask keyword or user path.
def get_type(self)
Get the coronograph type.
def set_wavelength_0(self, w)
Set the central wavelength in the coronagraph.
def set_babinet_trick(self, b)
Set the Babinet's trick flag.
def get_wav_vec(self)
Get the wavelengths array.
def get_apodizer_name(self)
Get the apodizer keyword or user path.
def get_dim_fpm(self)
Get the size of the focal plane mask support in pixel units.
def set_nb_wav(self, n)
Set the number of simulated wavelength in the spectral bandwidth.
def get_lyot_fpm_radius(self)
Get the radius of the classical Lyot focal plane mask in lambda / D units.
def set_image_sampling(self, sp)
Set the sampling in the image sampling = size of lambda / D in pixel units.
def get_image_sampling(self)
Get the sampling in the image sampling = size of lambda / D in pixel units.
def get_wavelength_0(self)
Get the central wavelength in the coronagraph.
def get_apodizer(self)
Get the apodizer pupil.
def set_asterix_parfile(self, f)
set the path of asterix parfile
def set_lyot_fpm_radius(self, r)
Set the radius of the classical Lyot focal plane mask in lambda / D units.
def set_dim_fpm(self, n)
Set the size of the focal plane mask support in pixel units.
Numerical constants for shesha and config enumerations for safe-typing.