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.ndarray
ofint
) : unique ID of each star. - flux (
np.ndarray
offloat
) : flux of each star. - ra (
np.ndarray
offloat
) : RA of each star. - dec (
np.ndarray
offloat
) : Dec of each star. - x_pos (
np.ndarray
offloat
) : X position of each star (in arcsec). - x_pm (
np.ndarray
offloat
) : X proper motion of each star (in pixels). - x_dist (
np.ndarray
offloat
) : sub-pixel X position shift of each star (in pixels). - y_pos (
np.ndarray
offloat
) : Y position of each star (in arcsec). - y_pm (
np.ndarray
offloat
) : Y proper motion of each star (in mas/year). - y_dist (
np.ndarray
offloat
) : sub-pixel Y position shift of each star (in pixels). - gauss_pos (
np.ndarray
offloat
) : X/Y-position of each star (in arcsec). - gauss_cov (
np.ndarray
offloat
) : covariance of Gaussian kernel to simulate tip-tilt blurring (in arcsec^2). - static_dist (
np.ndarray
offloat
) : 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 firstnstar
stars.