2

I have a landsat image with 11 bands. I need to run k means classification in R. But i do not need the whole of the image as my study area is much smaller. So I have created shape file of the Region of Interest(ROI) in ARC GIS which specifically covers my study area. So my questions is how does one clip a raster image to the extent of a shapefile (here my ROI) in R?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.