levellegendre

pySurf.data2D.levellegendre(x, y, deg, nanstrict=False)

Remove degree polyomial by line.

Evolution of leveldata using legendre functions that work also 2D. nr. of terms fitted in legendre is deg+1 (piston->deg=0). For 2D data, data are passed as second argument (y) and y coordinates passed as first (x) (legendre are leveled along columns). Nanstrict excludes the lines containing nans, otherwise only good points are considered.