Displaying 3 results from an estimated 3 matches for "tpsfit".
Did you mean:
testit
2012 May 10
2
converting raster image
Dear R users,
I was wondering how I can convert a raster image (that made R through interpolation) into an ascii or csv format?
this is the last line of my command
p <- interpolate(r, tpsfit)
So p is my raster file which I want to convert into ascii or csv
Many thanks
Regards
Mintewab
2012 May 16
2
replacing with NA
...brary(fields)
x <-1:20
y<- runif(20)
z<- c(11, 15, 17, 2, 18, 6, 7, NA, 12, 10,21, 25, 27, 12, 28, 16,
17, NA, 12, 10)
id <-1:20
mydataset<-data.frame(x, y, z)
temperature[complete.cases(mydataset),]
x<- temperature[, c(1)]
y<- temperature[, c(2)]
z<- temperature[, c(3)]
tpsfit <- Tps(cbind(x, y), z, scale.type="unscaled")
Many thanks as always.
Regards,
Mintewab
2011 May 13
0
Tps error
...ig.find.gcvmin(info, lambda.grid, gcv.grid$GCV, Krig.fgcv, :
GCV search gives a minimum at the endpoints of the
grid search
2: In Krig.find.gcvmin(info, lambda.grid, gcv.grid$GCV.one, Krig.fgcv.one, :
GCV search gives a minimum at the endpoints of the
grid search
This is the code I am using:
tpsfit <- Tps(cbind(x1, x2), Y, scale.type = "unscaled")
I have successfully used the Tps function for other subsets of the data, but one
set is problematic. The output suggests that the smoothing parameter (lambda)
is very low (5.632e-05). I have also attached the rest of the output from...