plasma-sds/optical-filter

Spectrum class

Closed this issue · 3 comments

The Spectrum class is an essential should feature:

  • array (x axis) containing the wavelength information
  • array (y axis) containing the profile information
  • the name of the spectra
  • name of profile
  • name the measurement unit of the profile
  • plot function to show the spectra
  • interpolator that generates profile value if given a wavelength value

The default values for profiles are: name: None, Profile: Intensity, Unit: Ph/s/m2/Omega/nm]
This class should hold any data that has a spectral description.

This class should function as a paired data carrier.

The class is up and running requires some testing to be done with.

Test_image
test image shows class function

Issue #13 follows up with unittesting