Skip to content

convert to grid file

6 messages · azam jaafari, PIKAL Petr

#
Hi
Assuming your object is one column matrix called mat1

You can simply change its dimension

dim(mat) <- c(970, 960)

regards
Petr
http://www.R-project.org/posting-guide.html
#
Hi
I do not understand. What do you want to do with your data? Maybe you 
could consult spatial package or CRAN Task views. One option could be to 
make vectors of row and columns coordinates. But it depends on what you 
want to do with your data.

Regards
Petr
#
Hi

I do not know sp package therefore I can not help you. Anyway without 
knowing "what is wrong" and without some reproducible example you hardly 
get any reasonable answer.

It seems to me that your d list especially x and y is not what you expect 
to be. 

see

str(d)

430071.4887:460006.8067

will resilt in row of integers from 430071 to 460006. I believe it is not 
what you want.

Regards
Petr
(each