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:
file : str

Filename of gzipped FITS file

BLOCK, NMAX, nspace : int

Parameters for reading bytes from the input file

strip : bool

Send output through strip_header_keys.

Returns:
header : Header

Header object