MicroLIA.noise_models
Created on Thu July 28 20:30:11 2018
@author: danielgodinez
Module Contents
Functions
|
Creates a noise model by fitting a one-dimensional smoothing |
|
Adds noise to magnitudes given a noise function. |
|
Adds noise to lightcurve given the magnitudes. |
- MicroLIA.noise_models.create_noise(median: numpy.typing.ArrayLike, rms: numpy.typing.ArrayLike, degree: int = 3) scipy.interpolate.UnivariateSpline[source]
Creates a noise model by fitting a one-dimensional smoothing spline of degree k.
- Parameters:
median (array) – Baseline magnitudes.
rms (array) – Corresponding RMS per baseline.
k (int) – Degree of the smoothing spline. Default is a cubic spline of degree 3.
- Returns:
fn
- Return type:
The kth degree spline fit.
- MicroLIA.noise_models.add_noise(mag: numpy.typing.ArrayLike, fn: Callable[[numpy.typing.ArrayLike], numpy.ndarray], zp: float = 24, exptime: int = 60) Tuple[numpy.ndarray, numpy.ndarray][source]
Adds noise to magnitudes given a noise function.
- Parameters:
- Returns:
mag (array) – The noise-added magnitudes.
magerr (array) – The corresponding magnitude errors.