make_maximal_wcs

grizli.utils.make_maximal_wcs(files, pixel_scale=None, get_hdu=True, pad=90, verbose=True, theta=0, poly_buffer=0.0002777777777777778, nsci_extensions=4)[source]

Compute an ImageHDU with a footprint that contains all of files

Parameters
fileslist

List of HST FITS files (e.g., FLT.) or WCS objects.

pixel_scalefloat

Pixel scale of output WCS, in arcsec. If None, get pixel scale of first file in files.

get_hdubool

See below.

padfloat

Padding to add to the total image size, in arcsec.

thetafloat

Position angle, degrees

nsci_extensionsint

Number of ‘SCI’ extensions to try in the exposure files.

Returns
hduImageHDU

If get_hdu is True.

-or-
header, wcsHeader, WCS

If get_hdu is False.