generate_stellar_fluxes

shocksgo.generate_stellar_fluxes(duration, M, T_eff, R, L, cadence=<Quantity 60. s>, frequencies=None, log_amplitudes=None, log_mode_lifetimes=None)[source]

Generate an array of fluxes with zero mean which mimic the power spectrum of the SOHO/VIRGO SPM observations, scaled for a star with a given mass, effective temperature, luminosity and radius.

Parameters:
duration : Quantity

Duration of simulated observations to generate.

M : Quantity

Stellar mass

T_eff : Quantity

Stellar effective temperature

R : Quantity

Stellar radius

L : Quantity

Stellar luminosity

cadence : Quantity

Length of time between fluxes

frequencies : ndarray or None

p-mode frequencies in the power spectrum in units of microHertz. Defaults to scaled solar values.

log_amplitudes : ndarray or None

p-mode amplitudes in the power spectrum. Defaults to scaled solar values.

log_mode_lifetimes : ndarray or None

p-mode lifetimes in the power spectrum. Defaults to scaled solar values.

Returns:
times : Quantity

Array of times at cadence cadence of size duration/cadence

fluxes : ndarray

Array of fluxes at cadence cadence of size duration/cadence

kernel : TermSum

Celerite kernel used to approximate the stellar power spectrum