level_by_line

pySurf.data2D.level_by_line(data, function=None, axis=0, **kwargs)

Remove line through extremes line by line (along vertical lines).

The returned array has 0 at the ends, but not necessarily zero mean. If fignum is set, plot comparison in corresponding figure. Function is a function of profile vector y that returns a corrected profile.

Completely useless, can be replaced by np.apply_along_axis or level_points.