I have 5 rasters. I computed the bounding boxes with
st_bbox for each of them. I would like to put all the raster-values in one dataframe. For that I figured they should have exactly the same extent.
I tried the
raster::resample-method, but I'm not really aware if it's just changing the resolution or the extent or what it is acutally doing.
So I thought I might simply compute the intersection of these five shapes and crop and mask every raster afterwards on this extent.
The extents look like this:
> bboxes [] xmin ymin xmax ymax 682878.2 5577687.4 769888.0 5661769.2 [] xmin ymin xmax ymax 682883.9 5577682.1 770070.2 5661805.2 [] xmin ymin xmax ymax 683022.2 5577718.4 770026.7 5661795.0 [] xmin ymin xmax ymax 679258.9 5593985.4 766400.1 5678075.8 [] xmin ymin xmax ymax 679306.8 5593986.0 766452.5 5678075.5
Does anyone has an idea on how to do that?