read_qtable#
- stixcore.products.product.read_qtable(file, hdu, hdul=None)[source]#
Read a fits file into a QTable and maintain dtypes of columns with units
Hack to work around QTable not respecting the dtype in fits file see astropy/astropy#12494
- Parameters:
file (
strorpathlib.Path) – Fits filehdu (
str) – The name of the extensionhdul (optional
astropy.io.fits.HDUList) – The HDU list for the fits file
- Returns:
astropy.table.QTable– The corrected QTable with correct data types