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
- spectrum
Spectrum1D The
Spectrum1Dobject to which the smoothing will be applied.- region
SpectralRegion Region to excise.
- spectrum
- Returns
- spectrum
Spectrum1D Output
Spectrum1Dwith the region excised.
- spectrum
- Raises
- ValueError
In the case that
spectrumandregionare not the correct types.