4.15. data¶
Returns the data of the FITS file.
- Fits.data() Any¶
Returns the data of the FITS file.
Returns
AnyThe data as an
np.ndarray.
Raises
ValueErrorRaised if the FITS file is not an image.
4.15.1. Example:¶
from myraflib import Fits
fits = Fits.sample()
data = fits.data()