smooth

sunkit_image.trace.smooth(image, width, nanopt='replace')[source]

Python implementation of the IDL’s smooth.

Parameters
  • image (numpy.ndarray) – 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 – Smoothed image.

References