read_fits

hcipy.util.read_fits(filename, extension=0)

Read an array from a fits file.

Parameters:
filenamestring

The filename of the file to read. This can include a path.

extensioninteger

The extension of the fits file that is being read.

Returns:
ndarray

The ndarray read from the fits file.