smooth

pydl.smooth(signal, owidth, edge_truncate=False)[source]

Replicates the IDL SMOOTH() function.

Parameters
signalarray-like

The array to be smoothed.

owidthint or array-like

Width of the smoothing window. Can be a scalar or an array with length equal to the number of dimensions of signal.

edge_truncatebool, optional

Set edge_truncate to True to apply smoothing to all points. Points near the edge are normally excluded from smoothing.

Returns
array-like

A smoothed array with the same dimesions and type as signal.

References

http://www.harrisgeospatial.com/docs/smooth.html