Displaying 1 result from an estimated 1 matches for "sysvar".
Did you mean:
sysval
2010 Mar 29
1
Error "grid must have equal distances in each direction"
...processing the data I am writing it into a file.
phi <- 0.5
N <- 4096
mu <- 90
sim<-grf(N*N,grid="reg",cov.model="spherical",cov.pars=c(1,phi),method="RF")
sim$data <- (sim$data - mean(sim$data)) / sd(sim$data)
local <- array(sim$data, dim=c(N,N))
sysvar <- local * sigma
P <- mu+sysvar
write.table(P,"sysv",row.names=F,col.names=F)
I get the following message when I run it for 4096 points and last few
values of the data set appear 0
"different grid distances detected, but the grid must have equal distances
in each direction -...