linear_exciser

specutils.manipulation.linear_exciser(spectrum, region)[source]

Basic spectral excise method where the spectral region defined by the parameter region (a SpectralRegion) 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
spectrumSpectrum1D

The Spectrum1D object to which the excision will be applied.

regionSpectralRegion

The region of the spectrum to replace.

Returns
spectrumSpectrum1D

Output Spectrum1D with the region excised.

Raises
ValueError

In the case that spectrum and region are not the correct types.