readRawFile

lsst.obs.lsst.utils.readRawFile(fileName, detector, dataId=None)

Read a raw file from fileName, assembling it nicely.

Parameters:
filename : str

The fully-qualified filename.

detector : lsst.afw.cameraGeom.Detector

Detector to associate with the returned Exposure.

dataId : lsst.daf.butler.DataCoordinate or dict

DataId to use in log message output.

Returns:
exposure : lsst.afw.image.Exposure

The assembled exposure from the supplied filename.