linear_exciser¶
-
specutils.manipulation.linear_exciser(spectrum, region)[source]¶ Basic spectral excise method where the spectral region defined by the parameter
region(aSpectralRegion) will result in the flux between those regions set to a linear ramp of the two points immediately before and after the start and end of the region.Other methods could be defined by the user to do other types of excision.
- Parameters
- spectrum
Spectrum1D The
Spectrum1Dobject to which the excision will be applied.- region
SpectralRegion The region of the spectrum to replace.
- spectrum
- Returns
- spectrum
Spectrum1D Output
Spectrum1Dwith the region excised.
- spectrum
- Raises
- ValueError
In the case that
spectrumandregionare not the correct types.