I have three rasters. Raster1 is a landcover file for a land cover types. Raster2 and raster3 are rasters showing variable 'NPP'. As you can see each raster has different extent & resolution. I want to know how much NPP is in both raster 2 and 3 in accordance with the landcover for raster1. However what could be done in order to bring all rasters to same extent and resolution and find NPP in raster2 and raster3 accordance with the landcover class in raster1?
(How can I know which resolution should I choose for all the rasters?)
> raster1
class : RasterLayer
dimensions : 2803, 5303, 14864309 (nrow, ncol, ncell)
resolution : 0.008333333, 0.008333333 (x, y)
extent : 60.85, 105.0417, 15.95833, 39.31667 (xmin, xmax, ymin, ymax)
crs : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
source :XXXXX
names : landusemaskedme
values : 1, 12 (min, max)
raster2
class : RasterLayer
dimensions : 2336, 4419, 10322784 (nrow, ncol, ncell)
resolution : 0.01, 0.01 (x, y)
extent : 60.85, 105.04, 15.96, 39.32 (xmin, xmax, ymin, ymax)
crs : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
source : memory
names : NPP
values : 0, 31.78096 (min, max)
> raster3
class : RasterLayer
dimensions : 47, 89, 4183 (nrow, ncol, ncell)
resolution : 0.5, 0.5 (x, y)
extent : 60.75, 105.25, 15.75, 39.25 (xmin, xmax, ymin, ymax)
crs : NA
source : memory
names : NPP
values : 0, 21.141 (min, max)