I am working on a code to clip a raster with another raster. I have a forestcover.tiff image and I want to clip it by using other image clip.tiff which extend lies within it. I don't want to use arcpy module because it requires ArcGIS installed. My code should work for all users.
[GIS] Clipping a tiff image using another tiff image using Python
clipimagepythonraster
Best Answer
You can use the
subprocess
module with the GDAL command line utilities to solve this.