flt_to_dict¶
- grizli.utils.flt_to_dict(fobj, primary_keys=['FILENAME', 'INSTRUME', 'INSTRUME', 'DETECTOR', 'FILTER', 'FILTER1', 'FILTER2', 'EXPSTART', 'DATE-OBS', 'EXPTIME', 'IDCTAB', 'NPOLFILE', 'D2IMFILE', 'PA_V3', 'FGSLOCK', 'GYROMODE', 'PROPOSID'], extensions=[('SCI', 1), ('SCI', 2)], ext_keys=['EXTNAME', 'EXTVER', 'MDRIZSKY', 'CRPIX1', 'CRPIX2', 'CRVAL1', 'CRVAL2', 'CD1_1', 'CD1_2', 'CD2_1', 'CD2_2', 'PC1_1', 'PC1_2', 'PC2_1', 'PC2_2', 'CDELT1', 'CDELT2', 'CUNIT1', 'CUNIT2', 'CTYPE1', 'CTYPE2', 'RADESYS', 'LONPOLE', 'LATPOLE', 'IDCTAB', 'D2IMEXT', 'WCSNAME', 'PHOTMODE', 'ORIENTAT', 'CCDCHIP'])[source]¶
Parse basic elements from a FLT/FLC header to a dictionary
- Parameters
- fobj
HDUList
FITS object
- primary_keyslist
Keywords to extract from the primary extension (0).
- extensionslist
List of additional extension names / indices.
- ext_keyslist
Keywords to extract from the extension headers.
- fobj
- Returns
- flt_dictdict