generate_stellar_fluxes

gadfly.generate_stellar_fluxes(duration, M, T_eff, R, L, cadence=<Quantity 60. s>, frequencies=None, amplitudes=None, mode_lifetimes=None, seed=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.

  • amplitudes (ndarray or None) – p-mode amplitudes in the power spectrum. Defaults to scaled solar values.

  • mode_lifetimes (ndarray or None) – p-mode lifetimes in the power spectrum. Defaults to scaled solar values.

  • seed (float, optional) – Random seed.

Returns

  • times (astropy.units.Quantity) – Array of times at cadence cadence of size duration/cadence

  • fluxes (numpy.ndarray) – Array of fluxes at cadence cadence of size duration/cadence

  • kernel (celerite2.terms.TermSum) – Celerite kernel used to approximate the stellar power spectrum