median_smooth¶
-
specutils.manipulation.median_smooth(spectrum, width)[source]¶ Smoothing based on a median filter. The median filter smoothing is implemented using the
scipy.signal.medfiltfunction.Parameters: spectrum :
Spectrum1DThe
Spectrum1Dobject to which the smoothing will be applied.width : number
The width of the median filter in pixels.
Returns: spectrum :
Spectrum1DOutput
Spectrum1Dwhich is copy of the one passed in with the updated flux.Raises: ValueError
In the case that
spectrumorwidthare not the correct type or value.