Hi everybody, 

I have a problem with the function "rasterFromXYZ". I have a 
matrix which contain, on each rows, x/y coordinates and a z value (for 
me it's called DM). And so I used "rasterFromXYZ" function to create a 
RasterLayer but when I used this function I had an error message : "y 
cell size are not regular". 
I don't understand my mistake because I've used this function and everything was OK. 

Thank you very much for all help, 
Camille Leclerc

An excerpt from my script : 
My matrix (whc.global.obj) which contain x,y,z data 

dfbiocfid    dfbiocfy        dfbiocfx      DM 
1	                -10.75000      142.5833    204.00917 
2	                -10.91667      142.4167    192.94587 
3	                -10.91667      142.5833    195.98638 
4                -11.08333      132.5833    50.87249 
5                -11.08333      142.2500    164.30234 
6          ... 

xyz<-cbind(whc.global.obj[,3],whc.global.obj[,2],whc.global.obj[,4]) 
whc<-rasterFromXYZ(xyz) 
 
--
Camille Leclerc, Master student
Lab ESE, UMR CNRS 8079
Univ Paris-Sud
Bat 362F-91405  Orsay Cedex FRANCE
	[[alternative HTML version deleted]]

