I want to perform an IDW interpolation with R. I am aware that I can do that with gstat::idw. But I want to change the parameter 'idp' with a radial basis function (RBF):
where
is the euclidean distance between of the i-th reference point and the j-th grid cell.
Do you know how I can implement this into the function of gstat::idw. Or do you know a script for IDW in R that I could edit?
Best Answer
I believe that you can specify an IDW with a radial basis function in the geosptdb library using the "rbfST" funciton. The package is intended for spatial-temporal IDW but should run with a single temporal dimension. This is at least a good place to start and you may be able to modify the "rbfST" function to suit your specific needs.