# Barnes interpolation

Barnes interpolation, named after Stanley L. Barnes, is the interpolation of unstructured data points from a set of measurements of an unknown function in two dimensions into an analytic function of two variables. An example of a situation where the Barnes scheme is important is in weather forecasting[1][2] where measurements are made wherever monitoring stations may be located, the positions of which are constrained by topography. Such interpolation is essential in data visualisation, e.g. in the construction of contour plots or other representations of analytic surfaces.

## Introduction

Barnes proposed an objective scheme for the interpolation of two dimensional data using a multi-pass scheme.[3][4] This provided a method to interpolating sea-level pressures across the entire United States of America, producing a synoptic chart across the country using dispersed monitoring stations. Researchers have subsequently improved the Barnes method to reduce the number of parameters required for calculation of the interpolated result, increasing the objectivity of the method.[5]

The method constructs a grid of size determined by the distribution of the two dimensional data points. Using this grid, the function values are calculated at each grid point. To do this the method utilises a series of Gaussian functions, given a distance weighting in order to determine the relative importance of any given measurement on the determination of the function values. Correction passes are then made to optimise the function values, by accounting for the spectral response of the interpolated points.

## Method

Here we describe the method of interpolation used in a multi-pass Barnes interpolation.

### First pass

For a given grid point ij the interpolated function g(xiyi) is first approximated by the inverse weighting of the data points. To do this as weighting values is assigned to each Gaussian for each grid point, such that

$w_{ij} = \exp\left(-\frac{r_m^2}{\kappa}\right), \,$

where $\kappa$ is a falloff parameter that controls the width of the Gaussian function. This parameter is controlled by the characteristic data spacing, for a fixed Gaussian cutoff radius wij = e−1 giving Δn such that:

$\kappa = 5.052\,\frac{2\, \Delta n}{\pi}^2. \,$

The initial interpolation for the function from the measured values $f_k(x,y)$ then becomes:

$g_0(x_i,y_j) = \frac{\displaystyle \sum_k w_{ij} f_k(x,y)}{\displaystyle \sum_k w_{ij}}.$

### Second pass

The correction for the next pass then utilises the difference between the observed field and the interpolated values at the measurement points to optimise the result:

$g_1(x_i,y_j) = g_0(x_i,y_j) + \sum( f(x,y) - g_0(x,y)) \exp\left(-\gamma \kappa \frac{\pi}{\lambda}^2\right). \,$

## Parameter selection

Although described as an objective method, there are many parameters which control the interpolated field. The choice of Δn, grid spacing Δx and $\gamma$ as well influence the final result. Guidelines for the selection of these parameters have been suggested,[5] however the final values used are free to be chosen within these guidelines.

The data spacing used in the analysis, Δn may be chosen either by calculating the true experimental data inter-point spacing, or by the use of a complete spatial randomness assumption, depending upon the degree of clustering in the observed data. The smoothing parameter $\gamma$ is constrained to be between 0.2 and 1.0. For reasons of interpolation integrity, Δx is argued to be constrained between 0.3 and 0.5.

## Notes

1. ^ "Objective Rainfall Analysis System". Retrieved 6 May 2009.
2. ^ Y.Kuleshov, G. de Hoedt, W.Wright and A.Brewster (2002). Thunderstorm distribution and frequency in Australia. Australian Meteorological Magazine. pp. 145–154.
3. ^ Barnes, S. L (1964). "A technique for maximizing details in numerical weather-map analysis". Journal of Applied Meteorology 3 (4): 396–409. Bibcode:1964JApMe...3..396B. doi:10.1175/1520-0450(1964)003<0396:ATFMDI>2.0.CO;2.
4. ^ Barnes, S.L (1964). Mesoscale objective analysis using weighted time-series observations. NOAA Technical Memorandum. National Severe Storms laboratory.
5. ^ a b Koch, S. E.,DesJardins, M and Kocin, P (1983), "An interactive Barnes Objective Map Analysis Scheme for Use with Satellite and Conventional Data", Journal of Climate and Applied Meteorology