readRawFitsHeader

lsst.obs.lsst.readRawFitsHeader(fileName, translator_class=None)

Read a FITS header from a raw file and fix it up as required.

Parameters
fileNamestr

Name of the FITS file. Can include a HDU specifier (although 0 is ignored).

translator_classMetadataTranslator,

optional

Any translator class to use for fixing up the header.

Returns
mdPropertyList

Metadata from file. We also merge the contents with the next HDU if an INHERIT key is not specified. If an explicit HDU is encoded with the file name and it is greater than 0 then no merging will occur.