I am completely new to spline interpolation, and I want to apply Thin Plate Spline using the fields package in R, and after I have applied Tps then do leave-one-out cross validation. This is how my data looks :
I would be grateful If you could guide on how to formulate my data correctly in order for Tps to work. I have read here (https://www.image.ucar.edu/GSP/Software/Fields/Help/Tps.html) the instructions and I have made a matrix with my independent variables (x, y - coordinates), and then I add a vector of the values that I want to interpolate (Jan), so my commant looks like that:jan_tps = Tps(coords["x"], coords["y"], st@data$Jan),but I get this error message: "Error in signif(mat, digits) : non-numeric argument to mathematical functionIn addition: Warning message:In if (p 1 and only the first element will be used"Any idea on how to perform Tps correctly would be much appreciated!
أكثر...

I would be grateful If you could guide on how to formulate my data correctly in order for Tps to work. I have read here (https://www.image.ucar.edu/GSP/Software/Fields/Help/Tps.html) the instructions and I have made a matrix with my independent variables (x, y - coordinates), and then I add a vector of the values that I want to interpolate (Jan), so my commant looks like that:jan_tps = Tps(coords["x"], coords["y"], st@data$Jan),but I get this error message: "Error in signif(mat, digits) : non-numeric argument to mathematical functionIn addition: Warning message:In if (p 1 and only the first element will be used"Any idea on how to perform Tps correctly would be much appreciated!
أكثر...