Source
Source(
input_par, exp_time, static_dist = False, stat_amp = 1.0, tt_amp = 1.0,
use_cov = False
)
The source object allows access to the parameters of each source (star) required to compute the MAVISIM image.
Args
- input_par : imported input parameter python file, e.g.,
input_parameters.py. - exp_time (
float) : exposure time in seconds to simulate. - static_dist (
bool, optional) : ifTrue, add static distortion defined ininput_par. - stat_amp (
float, optional) : scaling factor to apply to distortions. - tt_amp (
float, optional) : scaling factor to apply to tip-tilt blurring kernel width.
Attributes
- exp_time (
float) : exposure time in seconds to simulate. - star (
np.ndarrayofint) : unique ID of each star. - flux (
np.ndarrayoffloat) : flux of each star. - ra (
np.ndarrayoffloat) : RA of each star. - dec (
np.ndarrayoffloat) : Dec of each star. - x_pos (
np.ndarrayoffloat) : X position of each star (in arcsec). - x_pm (
np.ndarrayoffloat) : X proper motion of each star (in pixels). - x_dist (
np.ndarrayoffloat) : sub-pixel X position shift of each star (in pixels). - y_pos (
np.ndarrayoffloat) : Y position of each star (in arcsec). - y_pm (
np.ndarrayoffloat) : Y proper motion of each star (in mas/year). - y_dist (
np.ndarrayoffloat) : sub-pixel Y position shift of each star (in pixels). - gauss_pos (
np.ndarrayoffloat) : X/Y-position of each star (in arcsec). - gauss_cov (
np.ndarrayoffloat) : covariance of Gaussian kernel to simulate tip-tilt blurring (in arcsec^2). - static_dist (
np.ndarrayoffloat) : static distortion to apply to each source.
Methods:
.build_source
.build_source()
From the data stored in the object, compute the source data as required
.decimate
.decimate(
nstar
)
Decimate the list of objects in the object (e.g., for faster simualtions).
Args
- nstar (
int) : number of stars to reduce list down to. The resulting object will only contain the firstnstarstars.