predict.smooth.sspline {sspline} | R Documentation |
Make prediction on the sphere using the information
got from a smooth.sspline
object.
predict.smooth.sspline(object, lon, lat, grid=FALSE, ...)
object |
a smooth.sspline object |
lon |
the longitudes on which the prediction is to be made |
lat |
the latitudes on which the prediction is to be made |
grid |
whether the prediction is on a grid |
... |
other parameters, not used |
It calls Fortran subroutine with the .Fortran interface.
If grid = TRUE, return a matrix with dimension (length(lon), length(lat)); otherwise, return a vector of length = length(lon).
The longitudes and latitudes are measured in degrees.
Xianhong Xie
Grace Wahba (1981), Spline Interpolation and Smoothing on the Sphere, SIAM J. SCI. STAT. COMPUT.
data(WT9397) subdat <- WT9397[sample(nrow(WT9397), 200), 2:4] attach(subdat) splobj <- smooth.sspline(lon, lat, avgt) predict(splobj, lon=seq(-180,180,len=50), lat=seq(-90,90,len=25), grid=TRUE) detach(subdat)