Model T_i(t) = theta(t) + b_i + W(x_i, t) (Rohde et al. 2013). Starting
from station means, each iteration fits the weather correlation
R(d) = c exp(-d / L) by weighted least squares to pairwise residual
correlations (weights the overlap lengths; grid then golden-section search
on L), estimates theta(t) by ordinary block kriging of the domain mean over
a grid, re-estimates the baselines and centres theta. Identical to the
Python arm morie.fn.berkeley.
Arguments
- stations
Matrix of coordinates (x, y), or (lat, lon) with spherical.
- series
Matrix of station temperatures (stations by times, NA missing).
- grid
Optional matrix of domain points (default 10 x 10 on the bounding box).
- spherical
Great-circle kilometres from latitude and longitude.
- n_iter, tol
Iteration cap and convergence tolerance.
Value
List: theta, theta_se, baselines, correlation_c, correlation_length, nugget, correlation_sse, iterations.
