Core SPAMM Modules¶
Spectrum¶
-
class
spamm.Spectrum.Spectrum(spectral_axis, flux, flux_error=None, 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.flux_error (array-like or
astropy.units.Quantity, optional) – Error on flux values.spectral_axis_unit (
astropy.units.Unit, optional) – Wavelength unitflux_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=None, 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.flux_error (array-like or
astropy.units.Quantity, optional) – Error on flux values.spectral_axis_unit (
astropy.units.Unit, optional) – Wavelength unitflux_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=None, 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.flux_error (array-like or
astropy.units.Quantity, optional) – Error on flux values.spectral_axis_unit (
astropy.units.Unit, optional) – Wavelength unitflux_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.