readRawFile

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

Read a raw file from fileName, assembling it nicely.

Parameters:
filename : str

The fully-qualified filename.

dataId : lsst.daf.persistence.DataId

If provided, used to look up e.g. the filter.

detector : lsst.afw.cameraGeom.Detector

If provided, add this detector to the returned Exposure

Returns:
exposure : lsst.afw.image.Exposure

The assembled exposure from the supplied filename.