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.persistence.DataId or dict

DataId to use in log message output.

Returns:
exposure : lsst.afw.image.Exposure

The assembled exposure from the supplied filename.