actin2.readspec.ReadSpec

class actin2.readspec.ReadSpec(file, verb=False, spec_class_in=None, spec_file_in=None, **spec_kw)

Extracts data from spectrograph fits files.

Parameters:
  • file (str) – Fits file path containing the spectral data.

  • spec_class_in (str, None) – Spectrograph class identification. Useful if new spectrographs are added.

  • verb (bool) – Turn verbose on/off.

  • **spec_kw (dict) – Additional keyword arguments to be passed to the spectrograph class.

Class attributes:

spectrum

Dictionary containing wavelength and flux

Type:

dict

header

Dictionary containing selected headers from the fits file

Type:

dict

spec

The spectrograph class.

Type:

object

__init__(file, verb=False, spec_class_in=None, spec_file_in=None, **spec_kw)

Methods

__init__(file[, verb, spec_class_in, ...])

plot_bisector([show, ax])

plot_ccf([order, show, ax])

plot_spec([key_wave, key_flux, order, ax, show])

Plot spectrum.