Pattern#
- class morse.Pattern(spectrum, m, k, nurot, buoy_r, folded=False, tol=0.001, max_miss=5)#
Class to represent a period spacing pattern.
- m#
Azimuthal order.
- Type:
int
- k#
Ordering index (Lee & Saio 97).
- Type:
int
- nurot#
Rotation frequency (in µHz).
Determined by fitting a TAR model to the observed period spacing pattern.
- Type:
float
- err_nurot#
Error on fitted nurot (µHz).
- Type:
float
- buoy_r#
Buoyancy radius (in s).
Determined by fitting a TAR model to the observed period spacing pattern.
- Type:
float
- err_buoy_r#
Error on fitted buoyancy radius (s).
- Type:
float
- offset#
Offset.
It is assumed that the fitted nurot and buoy_r are exact. Offset varies widely with slighly different parameters therefore you should not attach any physical meaning to it.
- Type:
float
- folded#
If True, it is assumed that the spectrum is folded in the inertial frame.
- Type:
bool
- tol#
Maximum relative difference tolerated between modelled and observed mode periods.
- Type:
float
- model#
Best-fit TAR model saved as a Spectrum object containing the pulsation modes from n = 1 to 150.
- Type:
- freqs_obs#
Observed mode frequencies (in µHz).
- Type:
np.array
- periods_obs#
Observed mode periods (in d).
- Type:
np.array
- spacings_obs#
Observed period spacings (in d).
- Type:
np.array
- eta_obs#
Observed spin parameters.
- Type:
np.array
- freqs_mod#
Modelled mode frequencies (in µHz).
- Type:
np.array
- periods_mod#
Modelled mode periods (in d).
- Type:
np.array
- spacings_mod#
Modelled period spacings (in d).
- Type:
np.array
- eta_mod#
Modelled spin parameters.
- Type:
np.array
- err_freqs#
Uncertainties on mode frequencies (in µHz).
- Type:
np.array
- err_periods#
Uncertainties on mode periods (in d).
- Type:
np.array
- err_spacings#
Uncertainties on period spacings (in d).
- Type:
np.array
- fit(cov=False)#
Fits the period spacing pattern with the asymptotic TAR.
- Parameters:
cov (bool) – If True, uses the full covariance matrix (not implemented yet).
- plot(save=False)#
Plots the period spacing pattern.
- Parameters:
save (bool) – If True, saves the figure to a png file.
- save()#
Saves information about the pattern (mode ID, rotation frequency, buoyancy radius, modes) and saves a plot of the pattern together with the best-fit model.