4.15. data

Returns the data of the FITS file.


Fits.data() Any

Returns the data of the FITS file.

Returns

Any

The data as an np.ndarray.

Raises

ValueError

Raised if the FITS file is not an image.


4.15.1. Example:

from myraflib import Fits

fits = Fits.sample()
data = fits.data()