Simulates a time series showing granulation variations
A first-order autoregressive process is used, as this gives a Harvey
model in the frequency domain. See also: De Ridder et al., 2006, MNRAS
365, pp. 595-605.
- Parameters:
time (ndarray) - time points
timescale (ndarray) - array of time scale "tau_i" of each granulation
component of the granulation/magnetic activity. Same units as
'time'.
varscale (ndarray) - array of variation scale "sigma_i" of each component of
the granulation/magnetic activity in the appropriate passband.
Same size as the timescale array. Unit: ppm
- Returns: ndarray
Example:
>>> time = np.linspace(0,100,200)
>>> timescale = np.array([5.0, 20.])
>>> varscale = np.array([10.0, 50.0])
>>> gransignal = granulation(time, timescale, varscale)
>>> flux = 100000.0
>>> signal = flux * (1.0 + gransignal)
- the granulation signal
|