raster_tools.clipping.clip_box#

raster_tools.clipping.clip_box(raster, bounds)[source]#

Clip the raster to the specified box.

Parameters
  • raster (str, Raster) – The Raster or raster path string to clip.

  • bounds (tuple, list, array) – The bounding box of the clip operation: (minx, miny, maxx, maxy).

Returns

The raster clipped to the given bounds.

Return type

Raster