I have raster map A=elevation values and raster map B=raster with colors (each color represents a polygon boundary. raster map B is created with the use of v.to.rast)
I want to select the part of raster map A that is the same color with a particular color/area in raster map B.
I'm thinking of getting the intersection of raster map A and raster map B with raster map B containing only one color. Having the intersection of the two maps, I want to produce a new raster map C containing only raster map A that is the area similar to the shape of raster map B.
How is it done? Thanks!