[R-sig-Geo] RasterBrick: Change resolution, keep the values

Michael Peichl michael.peichl at ufz.de
Wed Jul 9 18:35:06 CEST 2014


Dear all,

I would like to change the resolution of the following RasterBrick to 
100, 100.

class       : RasterBrick
dimensions  : 225, 175, 39375, 720  (nrow, ncol, ncell, nlayers)
resolution  : 4000, 4000  (x, y)
extent      : 4038000, 4738000, 5220000, 6120000  (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0
data source : /home/usr/Documents/projects/...
names       : X1, X2, X3, X4, X5, X6, X7, X8, X9, X10, X11, X12, X13, 
X14, X15, ...
z-value     : 1, 720 (min, max)
varname     : varname

Thereby, the values of each Raster Cell on 4000,4000 resolution should 
be allocated to 40x40 raster cellls, having the same value as the large 
cells. I want to do this, because I want to use a raster on the more 
detailed resolution as mask:

class       : RasterLayer
dimensions  : 9000, 7000, 6.3e+07  (nrow, ncol, ncell)
resolution  : 100, 100  (x, y)
extent      : 4038000, 4738000, 5220000, 6120000  (xmin, xmax, ymin, ymax)
coord. ref. : NA
data source : in memory
names       : layer
values      : 12, 12  (min, max)

Any recommendations?

Thanks a lot!

Sincerely
Michael

-- 
						
Dipl.-Vw. Michael Peichl
Ökonomie / Economics
				
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Helmholtz Centre for Environmental Research GmbH - UFZ	
Permoserstraße 15 / 04318 Leipzig / Germany
Telefon +49 341 235 1641 / Fax 0341 235 451641
michael.peichl at ufz.de / www.ufz.de

Sitz der Gesellschaft: Leipzig
Registergericht: Amtsgericht Leipzig, Handelsregister Nr. B 4703
Vorsitzender des Aufsichtsrats: MinDirig Wilfried Kraus
Wissenschaftlicher Geschäftsführer: Prof. Dr. Georg Teutsch
Administrative Geschäftsführerin: Dr. Heike Graßmann



More information about the R-sig-Geo mailing list