function data = data_line_correct(data, wns, no_convolutions) no_convolutions: number of convolutions from [1, 1, 1] in the average filter wns: IINITIAL = 1; IFINAL = 2; IFLAG0 = 3; IFLAGMIN = 4; INOCONV = 5 IFLAG0 has prioriry over IFLAGMIN: if the former is 0, the latter is treated as 1 if number of convolutions is 0, the average coefficients vector will be [1]