Re: [R-sig-Geo] how to mask a raster with a coarser resolution selected grid squares ?

2010-09-17 Thread Arnald Marcer
Dear listers, Thanks to Robert and Edzer I finally found a way to do this. This is the final solution I got to, in case anybody wants to use it: ## # This function returns a masks all zones of a 1km raster which # do not fall inside 10km grid cells def

Re: [R-sig-Geo] how to mask a raster with a coarser resolution selected grid squares ?

2010-09-17 Thread Edzer Pebesma
On 09/17/2010 09:47 AM, Arnald Marcer wrote: > Dear listers, > > Can anybody help me with this ? > > How can I mask a 1km UTM grid raster with a list of coordinates > which represent the center of 10km UTM grid squares ? Ultimately > I want the 1km grid raster with only the pixels that fall ins

[R-sig-Geo] how to mask a raster with a coarser resolution selected grid squares ?

2010-09-17 Thread Arnald Marcer
Dear listers, Can anybody help me with this ? How can I mask a 1km UTM grid raster with a list of coordinates which represent the center of 10km UTM grid squares ? Ultimately I want the 1km grid raster with only the pixels that fall inside the 10km UTM grid squares. Also, how can I build a Spat