level_data¶
- pySurf.data2D.level_data(data, x=None, y=None, degree=1, axis=None, byline=False, fit=False, *args, **kwargs)¶
Use RA routines to remove degree 2D legendres or levellegendre if leveling by line.
- Degree can be scalar (it is duplicated) or 2-dim vector. must be scalar if leveling by line. Note the important difference between e.g. degree = 2 and
degree = (2,2). The first one uses degree as total degree, it expands then to xl,yl = [0,1,0,1,2,0],[0,0,1,1,0,2]. The second
leveling by line (controlled by axis keyword) also handle nans. x and y are not used, but maintained for interface consistency. fit=True returns fit component instead of residuals