inject_microflares¶
-
libra.inject_microflares(wavelengths, times, seed=None)[source] [edit on github]¶ Inject flares into a transit light curve at
timesatwavelengthsModel 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 :
ndarrayTimes of observations
Returns: fluxes :
ndarrayFluxes with flares added.