I have raster data of NDVI and DEM I have already created contour from DEM. Now I'm trying to find following:
for each contour find the raster information within the contour.
Can anyone suggest available methods in GRASS?
I used r.mask and then v.what.rast it works. However, I got the ndvi values of the area that has been masked (NDVI values that lie inside the polygon plus the outside area) [image -1] https://i.stack.imgur.com/NMNlm.jpg
Actually, I need NDVI values that lie inside the contour/polygon [image-2] https://i.stack.imgur.com/A2YWl.jpg
I may actually need to intersect each contour with the NDVI and extract the NDVI values (inside the contour).