How to crop a raster image by coordinates in python? How to crop a raster image by coordinates in python? numpy numpy

How to crop a raster image by coordinates in python?


Try to use bbox = (xmin,ymin,xmax,ymax)

from osgeo import gdalbbox = (xmin,ymin,xmax,ymax)gdal.Translate('output_crop_raster.tif', 'input_raster.tif', projWin = bbox)