ospgrid.utils.crop_to_bbox#

crop_to_bbox(file, pad=0)[source]#

Crops the image to the bounding box, but adds a padding. This function overwrites the original.