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 wave and flux flux data.

  • headers (dict) – Dictionary containing useful fits headers information.

  • indices (list, str) – List of indices ìnd_id to be extracted.

  • step (float) – Step used in interpolation. Must have interp=True

  • table_df (pd.DataFrame, None) – Indices table to be used as input. If None the default actin_table.csv will be used.

  • plot_lines (bool) – Diagnostic plot.

  • full_output (bool) – if True the 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 step value.

  • 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, ...)