smooth#
- sunkit_image.trace.smooth(image, width, nanopt='replace')[source]#
Python implementation of the IDL’s
smooth.- Parameters:
image (
numpy.ndarray,sunpy.map.GenericMap) – Image to be filtered.width (
int) – Width of the boxcar window. Thewidthshould always be odd but if even value is given thenwidth + 1is used as the width of the boxcar.nanopt ({"propagate" , "replace"}) – It decides whether to propagate NAN’s or replace them.
- Returns:
numpy.ndarray,sunpy.map.GenericMap– Smoothed image. If a map is input, a map is returned with new data and the same metadata.
References
Emmalg’s answer on stackoverflow https://stackoverflow.com/a/35777966