pygnuastro.fits.img_read¶
- pygnuastro.fits.img_read()¶
Reads the contents of the ‘hdu’ extension/HDU of ‘filename’ into a NumPy array and returns it. Note that this function only reads the main data within the requested FITS extension, the WCS will not be read into the returned dataset.
Args: filename (str): Name of the FITS file(with the ‘.fits’ ext) hdu (str): The HDU number of the FITS file to read
Returns: np.array: The Numpy array with the data read from the hdu of the given FITS image