The order of three resampling kernels, measured
Each kernel run over five rasters from 48×32 to 160×110 cells, warped into Lambert azimuthal equal-area and back, with the RMS departure from the field measured on the grid it started on. On logarithmic axes each kernel is a straight line and its slope is its order of convergence: nearest 1.00, bilinear 1.98, cubic 2.93. That is the difference between them stated as a number rather than as an adjective — halving the cell size halves nearest's error, quarters bilinear's, and divides the cubic's by eight.
It is drawn by operation-figure with
show: "kernel-order" — one member of a family of
14 figures
that share a generator, so the drawing above is what that generator returns when it is asked
for this one and given nothing else.
5 essays call it. Every call below passes it something, because a placement that passes nothing draws whichever member of the family the generator happens to default to rather than the one its essay argues about.
Where it is called
Changing this changes every one of these figures.
Reprojecting a raster invents values
Moving a picture from one projection to another moves no coordinate — the maps are exact both ways. What is lost is that a target cell's centre does not land on a source cell's centre, so a value has to be made up for it, and the making-up has an order of convergence: 1.00 for nearest, 1.98 for bilinear, 2.93 for a cubic, measured by refining the grid.
An edge has no order of convergence
On a smooth field the three resampling kernels converge at orders 1, 2 and 3 and the choice is obvious. Across a discontinuity they converge at 0.78, 0.58 and 0.60 — within a factor of 1.4 of each other, in an order that puts nearest-neighbour first, and a real raster is mostly edges.
One edge is not an edge
The three resampling kernels were measured across a discontinuity and came out at 0.78, 0.58 and 0.60 — one straight edge at 27° to the graticule. Across thirteen edges the same kernels span 0.19 to 0.87, the ranking between them reverses, and for an edge lying along a parallel the error does not fall with refinement at all.
A real edge has a width
Thirteen edges were measured and every one of them was exactly discontinuous, which no sensor has ever produced. Convolving them with a point-spread function of one degree — a cell or two — takes the three kernels from 0.78, 0.58 and 0.60 back to 1.23, 1.97 and 3.60, and takes the edge along a parallel, which converged at −1.49, up to 1.92 for bilinear and 3.73 for cubic.
A line has a length only at a scale
Every measurement on this site so far has been of a curve given by a formula, sampled as finely as the picture needed. A map is not that: the geometry that reaches the page has been through an algorithm whose job is to throw most of it away. The first thing that goes is the idea that the line had a length.