Subtract the average value of npts at the edge of a given axis.
channel (int or str) – Channel to level.
axis (int) – Axis to level along.
npts (int) – Number of points to average for each slice. Positive numbers take points at leading indicies and negative numbers take points at trailing indicies.
verbose (bool (optional)) – Toggle talkback. Default is True.