linear_exciser

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

Basic spectral excise method where the spectral region defined by the 2-tuple parameter region (start and end wavelengths) 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 regions.

Other methods could be defined by the user to do other types of excision.

Parameters
spectrumSpectrum1D

The Spectrum1D object to which the smoothing will be applied.

regionSpectralRegion

Region to excise.

Returns
spectrumSpectrum1D

Output Spectrum1D with the region excised.

Raises
ValueError

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