I have two single band rasters, both with the same spatial resolution and CRS. A land cover raster (named clc
), and another one, that is for a smaller area (named patch
) and falls within the extent of clc
. Here are some details of the two rasters:
clc |
patch |
|
---|---|---|
Number of Bands | 1 | 1 |
CRS | EPSG:32632 | EPSG:32632 |
Spatial resolution | (60.0, 60.0) | (60.0, 60.0) |
Rows | 14452 | 135 |
Columns | 12067 | 134 |
I want to extract a new raster with the extent and pixel values of patch
on the locations where clc
has values defined in a list [10, 13, 22].
I am new to rasterio and only managed to extract the clc
values instead of the corresponding patch
values.