The despike routine works in the following way:
Displaying the data in 3 dimensions (x, y grid and n data points for each bin) would be far too cluttered so the 2-dimensional grid is transformed to a 1-dimensional strip before plotting. The plot shows data value against bin number for all the bins. The transformation from 1- to 2-dimensions can be achieved in many ways but only 5 methods have been implemented in despike. The supported methods, presented graphically in figure 13 and with reference to the bin numbers used in the figure, are:
In general this means that in the case where the source lies in the centre of the array, the spiral display mode will show the source in the first few bins whereas the other modes will display the source in the middle of the range.
Sometimes spikes skew the statistics of an individual bin to such an extent that a spike lies within the
NSIGMA cutoff region (i.e. the spike makes the standard deviation so large that it lies within
NSIGMA of the mean). In an effort to overcome this problem a smoothing option is provided. This
option smooths the clipping envelope (the region that determines whether a point is a spike or not)
across adjacent bins so that fluctuations in the statistics of adjacent bins are reduced. This smooth
works in one dimension only and the definition of adjacent depends on the method used for
transforming the data to 1-D (parameter DMODE
).
Figure 14 shows an example of the different modes with and without smoothing. Points lying outside the high and low lines are treated as spikes. In this example the smoothing has resulted in the detection of two spikes (probably too faint on this figure but the spikes are in bins 120 (spiral) and 2370 (x)).