inject_microflares

libra.inject_microflares(wavelengths, times, seed=None)[source] [edit on github]

Inject flares into a transit light curve at times at wavelengths

Model the flare rate as a Poisson process with rate parameter set by the K2 flare frequency - 11 flares in 78.8 days. Draw random variates from that Poisson distribution and assign properties to the flares from the K2 observations.

Assume a 10000 K blackbody for flares.

Parameters:

times : ndarray

Times of observations

Returns:

fluxes : ndarray

Fluxes with flares added.