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. The width should always be odd but if even value is given then width + 1 is 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