I would like to make a figure with 2 subplots from two geotiff files with different extent and different projection system. I would like to crop the plot based on the Rapideye extent. How should I do ? Below are the details of the file.
SPOT-VGT
class : RasterLayer
dimensions : 8961, 8961, 80299521 (nrow, ncol, ncell)
resolution : 0.008928571, 0.008928571 (x, y)
extent : -20, 60.00893, -40.00893, 40 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=longlat +datum=WGS84 +no_defs +ellps=WGS84 +towgs84=0,0,0
data source : /AFRI_VGT_V1.3.tiff
names : g2_BIOPAR_WB.GWWR_201305110000_AFRI_VGT_V1.3
values : 0, 255 (min, max)
RAPIDEYE
class : RasterStack
dimensions : 14600, 14600, 213160000, 5 (nrow, ncol, ncell, nlayers)
resolution : 5, 5 (x, y)
extent : 355500, 428500, 2879500, 2952500 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=utm +zone=36 +datum=WGS84 +units=m +no_defs +ellps=WGS84 +towgs84=0,0,0
names : /rapideye.tif
min values : 0, 0, 0, 0, 0
max values : 65535, 65535, 65535, 65535, 65535