[R-sig-Geo] Resampling rasters with count data
Matthew Landis
landis at isciences.com
Tue Jun 21 18:32:10 CEST 2011
Simon - will nearest neighbor sampling solve your problem?
resample(x, y, method = 'ngb')
On 6/21/2011 12:21 PM, O'Hanlon, Simon J wrote:
> Dear list,
> does anybody know of a method to resample rasters which contain count data? The 'normal' way of resampling would be to perform some interpolation between cells to smooth between the values, for instance if you have a raster of 1km by 1km cells and you resample to 5by 5km cells you would typically employ bilinear or cubic resampling methods to average out the values at the higher resolution.
>
> However, as I have population count data I want to maintain the integrity of the count. I have a raster of square cells which is 523 by 307 cells, which I need to resample to slightly larger cells which will give me 477 columns by 275 rows, ensuring that the total count across the slightly larger cells adds up to that of the original dataset.
>
> Many thanks for your thoughts.
>
> Simon
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew Landis, Ph.D.
Research Scientist
ISciences, LLC
61 Main St. Suite 200
Burlington VT 05401
802.864.2999
~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the R-sig-Geo
mailing list