Core SPAMM Modules

Spectrum

class spamm.Spectrum.Spectrum(spectral_axis, flux, flux_error, spectral_axis_unit=Unit("Angstrom"), flux_unit=Unit("erg / (Angstrom cm2 s)"), *args, **kwargs)

Inherit from Spectrum1DRef in specutils. Wavelength (spectral_axis) and flux are unit-less in this child class. Units are instead stored as attributes.

Parameters
  • spectral_axis (array-like or astropy.units.Quantity) – Wavelength values.

  • flux (array-like or astropy.units.Quantity) – Flux values.

:param flux_error (array-like or astropy.nddata.NDUncertainty, or: obj:`astropy.units.Quantity) :

Error on flux values.

Parameters
  • spectral_axis_unit (astropy.units.Unit, optional) – Wavelength unit

  • flux_unit (astropy.units.Unit, optional) – Flux unit.

flux

Unit-less flux values of Spectrum instance.

grid_spacing()

Return the spacing of the wavelength grid in Ångstroms. Does not support variable grid spacing.

norm_wavelength_flux

Returns the flux at the normalization wavelength.

spectral_axis

Returns a Quantity array with the values of the spectral axis.

Model

class spamm.Spectrum.Spectrum(spectral_axis, flux, flux_error, spectral_axis_unit=Unit("Angstrom"), flux_unit=Unit("erg / (Angstrom cm2 s)"), *args, **kwargs)

Inherit from Spectrum1DRef in specutils. Wavelength (spectral_axis) and flux are unit-less in this child class. Units are instead stored as attributes.

Parameters
  • spectral_axis (array-like or astropy.units.Quantity) – Wavelength values.

  • flux (array-like or astropy.units.Quantity) – Flux values.

:param flux_error (array-like or astropy.nddata.NDUncertainty, or: obj:`astropy.units.Quantity) :

Error on flux values.

Parameters
  • spectral_axis_unit (astropy.units.Unit, optional) – Wavelength unit

  • flux_unit (astropy.units.Unit, optional) – Flux unit.

flux

Unit-less flux values of Spectrum instance.

grid_spacing()

Return the spacing of the wavelength grid in Ångstroms. Does not support variable grid spacing.

norm_wavelength_flux

Returns the flux at the normalization wavelength.

spectral_axis

Returns a Quantity array with the values of the spectral axis.

Analysis

class spamm.Spectrum.Spectrum(spectral_axis, flux, flux_error, spectral_axis_unit=Unit("Angstrom"), flux_unit=Unit("erg / (Angstrom cm2 s)"), *args, **kwargs)

Inherit from Spectrum1DRef in specutils. Wavelength (spectral_axis) and flux are unit-less in this child class. Units are instead stored as attributes.

Parameters
  • spectral_axis (array-like or astropy.units.Quantity) – Wavelength values.

  • flux (array-like or astropy.units.Quantity) – Flux values.

:param flux_error (array-like or astropy.nddata.NDUncertainty, or: obj:`astropy.units.Quantity) :

Error on flux values.

Parameters
  • spectral_axis_unit (astropy.units.Unit, optional) – Wavelength unit

  • flux_unit (astropy.units.Unit, optional) – Flux unit.

flux

Unit-less flux values of Spectrum instance.

grid_spacing()

Return the spacing of the wavelength grid in Ångstroms. Does not support variable grid spacing.

norm_wavelength_flux

Returns the flux at the normalization wavelength.

spectral_axis

Returns a Quantity array with the values of the spectral axis.