get_fits_slices

grizli.utils.get_fits_slices(file1, file2)[source]

Get overlapping slices of FITS files

Parameters
file1str, Header, or HDUList

First file, header or HDU

file2str, Header, or HDUList

Second file, header or HDU

Returns
nx, nyint

Size of the overlapping region

validbool

True if there is some overlap

sl1(slice, slice)

y and x slices of the overlap in file1

sl2(slice, slice)

y and x slices of the overlap in file2