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
Spectrum1D
object to which the excision will be applied.- region
SpectralRegion
The region of the spectrum to replace.
- spectrum
- Returns:
- spectrum
Spectrum1D
Output
Spectrum1D
with the region excised.
- spectrum
- Raises:
- ValueError
In the case that
spectrum
andregion
are not the correct types.