lentil.extent.intersection_slices#

lentil.extent.intersection_slices(a, b)[source]#

Compute slices of overlapping areas between two overlapping extents

Parameters:
  • a ((4,) array like) – Array extents (rmin, rmax, cmin, cmax)

  • b ((4,) array like) – Array extents (rmin, rmax, cmin, cmax)

Return type:

tuples of slices