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. Thewidth
should always be odd but if even value is given thenwidth + 1
is used as the width of the boxcar.nanopt ({"propagate" | "replace"}) – It decides whether to
propagate
NAN’s orreplace
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