get_common_slices¶
- grizli.utils.get_common_slices(a_origin, a_shape, b_origin, b_shape)[source]¶
Get slices of overlaps between two rectangular grids
- Parameters
- a_origintuple
The origin coordinates of grid A.
- a_shapetuple
The shape of grid A.
- b_origintuple
The origin coordinates of grid B.
- b_shapetuple
The shape of grid B.
- Returns
- a_slicetuple
The slices of grid A that overlap with grid B.
- b_slicetuple
The slices of grid B that overlap with grid A.