geoutils.Raster.icrop# Raster.icrop(bbox, *, inplace=False)[source]# Crop raster based on pixel indices (bbox), converting them into georeferenced coordinates. Parameters: bbox (list[int] | tuple[int, ...]) – Bounding box based on indices of the raster array (colmin, rowmin, colmax, rowax). inplace (bool) – If True, modify the raster in place. Otherwise, return a new cropped raster. Return type: Optional[TypeVar(RasterType, bound= Raster)] Returns: Cropped raster or None (if inplace=True).