[R-sig-Geo] SpatialPixel and SpatialPoints Overlay output
Michal Gallay
mgallay01 at qub.ac.uk
Fri Oct 26 11:28:09 CEST 2007
Hello R User's,
I am struggling with overlaying 2 rasters datasets. Both were ASCII grids
and loaded via read.asciigrid. One as SpatialPixelDataFrame and another
converted to SpatialPointsDataFrame.
The are shifted with respect to each other and the aim is to get the values
from raster1 in the overaly region with raster2. However, the overaly does
not give the values which are in raster1 at data, but the values'
order(position in the vector).
Could anyone advise why is that? Is there a simple way how to actually clip
them according to the overlay region?
Thank you very much.
Regards,
Michal
--
Michal Gallay
Postgraduate Research Student
School of Geography, Archaeology and Palaeoecology
Queen's University
Belfast BT7 1NN
Northern Ireland
Tel: +44(0)2890 273929
Fax: +44(0)2890 973212
email: mgallay01 at qub.ac.uk
www: www.qub.ac.uk/geog
More information about the R-sig-Geo
mailing list