read_gzipped_header

grizli.utils.read_gzipped_header(file='test.fits.gz', BLOCK=1024, NMAX=256, nspace=16, strip=False)[source]

Read primary header from a (potentially large) zipped FITS file

The script proceeds by reading NMAX segments of size BLOCK bytes from the file and searching for a string END + ' '*nspace in the data indicating the end of the primary header.

Parameters
filestr

Filename of gzipped FITS file

BLOCK, NMAX, nspaceint

Parameters for reading bytes from the input file

stripbool

Send output through strip_header_keys.

Returns
headerHeader

Header object