powered by
Interpolates a square input matrix to a finer resolution ns using nearest neighbours.
ns
interpola(z, ns)
matrix containing the input field at coarse resolution.
the target size.
The resulting fine-scale field with dimensions c(ns, ns).
c(ns, ns)
# NOT RUN { za <- rnorm(4 * 4) dim(za) <- c(4, 4) z <- interpola(za, 16) dim(z) # [1] 16 16 # }
Run the code above in your browser using DataLab