To ensure that the smoothing function is applied uniformly over the whole data array, it is treated differently at the edges. For instance, at pixel one, half of the smoothing function will lie outside the array. The ends of the dataset are temporarily extended by half of the width of the smoothing window while being smoothed using one of the following user selectable techniques (controlled by the value of the ENDS parameter),