actin2.calcindices.CalcIndices
- class actin2.calcindices.CalcIndices(spectrum, headers, indices, step=0.001, table_df=None, plot_lines=False, full_output=False, interp=True, verb=False)
Calculates activity indices.
- Parameters:
spectrum (dict) – Dictionary containing wavelength
waveand fluxfluxdata.headers (dict) – Dictionary containing useful fits headers information.
indices (list, str) – List of indices
ìnd_idto be extracted.step (float) – Step used in interpolation. Must have
interp=Truetable_df (pd.DataFrame, None) – Indices table to be used as input. If
Nonethe defaultactin_table.csvwill be used.plot_lines (bool) – Diagnostic plot.
full_output (bool) – if
Truethe output includes the fluxes and errors in of each line.interp (bool) – Use interpolation to reeduce the effect of finite resolution of thhe spectrographs. The interpolation step is
stepvalue.verb (bool) – Turn verbose on/off.
- indices
Dictionary with indices data.
- Type:
dict
- __init__(spectrum, headers, indices, step=0.001, table_df=None, plot_lines=False, full_output=False, interp=True, verb=False)
Methods
__init__(spectrum, headers, indices[, step, ...])calc_flux_band(wave, flux, flux_err, noise, ...)calc_index(wave, flux, flux_err, noise, ...)